def __init__(self, id): """ Initialise a new instance of XWFFile. """ self.id = id self.initProperties() File.__init__(self, id, id, '', '', '') self.update_data('', '', 0)
def __init__ (self, id, title='', pdf_file=''): # holds all the cell informations, even those not related to this form self.all_cells = PersistentMapping() # holds the cells related to this pdf form self.cells = PersistentMapping() # File constructor will set the file content File.__init__(self, id, title, pdf_file)
def __init__ (self, id, title='', pdf_file=''): # holds information about all cells, even those not related to this form self.all_cells = PersistentMapping() # holds the cells related to this pdf form self.cells = PersistentMapping() # File constructor will set the file content File.__init__(self, id, title, pdf_file)
def __init__( self, id, storage_plugin ): """ Initialise a new instance of XWFPluggableFile. """ self.storage_plugin = storage_plugin() # we do a quick, fake, init here, and do the actual file # later File.__init__( self, id, id, '' ) security = getSecurityManager() self.manage_addProperty( 'dc_creator', security.getUser().getId(), 'ustring' ) self.manage_addProperty( 'original_filename', '', 'ustring' )
def __init__(self, id, storage_plugin): """ Initialise a new instance of XWFPluggableFile. """ self.storage_plugin = storage_plugin() # we do a quick, fake, init here, and do the actual file # later File.__init__(self, id, id, '') security = getSecurityManager() self.manage_addProperty('dc_creator', security.getUser().getId(), 'ustring') self.manage_addProperty('original_filename', '', 'ustring')
def __init__(self, id, title, properties={}): """ZAnnotation constructor""" # Initialize properties if properties: self._doUpdate(properties) else: self.type = None self.annotates = None self.context = None self.language = None self.creator = None self.created = None self.date = None self.body = None self.root = None self.inreplyto = None self.encoding = '' return File.__init__(self, id, title,'','text/html')
def __init__(self, *args, **kwargs): self._parameters = {} return File.__init__(self, *args, **kwargs)