예제 #1
0
파일: blob.py 프로젝트: bendavis78/zope
 def __init__(self, base_directory, storage, layout='automatic'):
     # XXX Log warning if storage is ClientStorage
     SpecificationDecoratorBase.__init__(self, storage)
     self.fshelper = FilesystemHelper(base_directory, layout)
     self.fshelper.create()
     self.fshelper.checkSecure()
     self.dirty_oids = []
     try:
         supportsUndo = storage.supportsUndo
     except AttributeError:
         supportsUndo = False
     else:
         supportsUndo = supportsUndo()
     self.__supportsUndo = supportsUndo
     self._blobs_pack_is_in_progress = False
예제 #2
0
파일: blob.py 프로젝트: grodniewicz/oship
    def __init__(self, base_directory, storage, layout='automatic'):
        # XXX Log warning if storage is ClientStorage
        SpecificationDecoratorBase.__init__(self, storage)
        self._blob_init(base_directory, layout)
        try:
            supportsUndo = storage.supportsUndo
        except AttributeError:
            supportsUndo = False
        else:
            supportsUndo = supportsUndo()
        self.__supportsUndo = supportsUndo
        self._blobs_pack_is_in_progress = False

        if ZODB.interfaces.IStorageRestoreable.providedBy(storage):
            zope.interface.alsoProvides(self,
                                        ZODB.interfaces.IBlobStorageRestoreable)
예제 #3
0
파일: blob.py 프로젝트: bendavis78/zope
 def __new__(self, base_directory, storage, layout='automatic'):
     return SpecificationDecoratorBase.__new__(self, storage)
예제 #4
0
파일: blob.py 프로젝트: grodniewicz/oship
 def __new__(self, base_directory, storage, layout='automatic'):
     return SpecificationDecoratorBase.__new__(self, storage)