def __init__(self, obj):
        """Constructs a new JB_File. the type of object determines the elementspreset (the generation of the path).

        :param obj: the fileinfo with information.
        :type obj: :class:`FileInfo`
        :raises: None
        """
        self._obj = obj
        try:
            self._elements = self.ELEMENTPRESETS[obj.__class__]
        except KeyError:
            typename = obj.__class__.__name__
            supported = [x.__name__ for x in self.ELEMENTPRESETS.keys()]
            raise TypeError("JB_File does not know how to handle the fileinfo. FileInfo is of type %s, supported are: %s" % (typename, supported))
        try:
            self._extel = self.EXTENSIONS[obj.__class__]
        except KeyError:
            typename = obj.__class__.__name__
            supported = [x.__name__ for x in self.EXTENSIONS.keys()]
            raise TypeError("JB_File does not know how to handle the fileinfo to get an extension. FileInfo is of type %s, supported are: %s" % (typename, supported))
def __init__ ( self , obj ) : self . _obj = obj try : self . _elements = self . ELEMENTPRESETS [ obj . __class__ ] except KeyError : typename = obj . __class__ . __name__ supported = [ x . __name__ for x in self . ELEMENTPRESETS . keys ( ) ] raise TypeError ( "JB_File does not know how to handle the fileinfo. FileInfo is of type %s, supported are: %s" % ( typename , supported ) ) try : self . _extel = self . EXTENSIONS [ obj . __class__ ] except KeyError : typename = obj . __class__ . __name__ supported = [ x . __name__ for x in self . EXTENSIONS . keys ( ) ] raise TypeError ( "JB_File does not know how to handle the fileinfo to get an extension. FileInfo is of type %s, supported are: %s" % ( typename , supported ) )
Constructs a new JB_File. the type of object determines the elementspreset (the generation of the path).

        :param obj: the fileinfo with information.
        :type obj: :class:`FileInfo`
        :raises: None