def __init__(self, context):
     self.context = aq_inner(context)
     self.settings = Settings(self.context)
     self.filehash = None
     self.blob_filepath = None
     self.gsettings = GlobalSettings(getPortal(context))
     self.storage_dir = self.get_storage_dir()
     self.doc_type = getDocumentType(self.context,
                                     self.gsettings.auto_layout_file_types)
 def __init__(self, context):
     self.context = aq_inner(context)
     self.settings = Settings(self.context)
     fw = IFileWrapper(self.context)
     self.blob = fw.blob
     self.initialize_blob_filepath()
     self.filehash = None
     self.gsettings = GlobalSettings(api.portal.get())
     self.storage_dir = self.get_storage_dir()
     self.doc_type = getDocumentType(self.context,
                                     self.gsettings.auto_layout_file_types)
Beispiel #3
0
 def __init__(self, context):
     self.context = aq_inner(context)
     self.settings = Settings(self.context)
     fw = IFileWrapper(self.context)
     self.blob = fw.blob
     self.initialize_blob_filepath()
     self.filehash = None
     self.gsettings = GlobalSettings(api.portal.get())
     self.storage_dir = self.get_storage_dir()
     self.doc_type = getDocumentType(self.context,
                                     self.gsettings.auto_layout_file_types)
 def __init__(self, context):
     self.context = aq_inner(context)
     self.settings = Settings(self.context)
     field = self.context.getField('file') or context.getPrimaryField()
     wrapper = field.get(self.context)
     self.blob = wrapper.getBlob()
     self.initialize_blob_filepath()
     self.filehash = None
     self.gsettings = GlobalSettings(getPortal(context))
     self.storage_dir = self.get_storage_dir()
     self.doc_type = getDocumentType(self.context,
                                     self.gsettings.auto_layout_file_types)
Beispiel #5
0
 def __init__(self, context):
     self.context = aq_inner(context)
     self.settings = Settings(self.context)
     field = self.context.getField('file') or context.getPrimaryField()
     wrapper = field.get(self.context)
     self.blob = wrapper.getBlob()
     self.initialize_blob_filepath()
     self.filehash = None
     self.gsettings = GlobalSettings(getPortal(context))
     self.storage_dir = self.get_storage_dir()
     self.doc_type = getDocumentType(self.context,
                                     self.gsettings.auto_layout_file_types)