Exemplo n.º 1
0
 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
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def __new__(self, base_directory, storage, layout='automatic'):
     return SpecificationDecoratorBase.__new__(self, storage)
Exemplo n.º 4
0
 def __new__(self, base_directory, storage, layout='automatic'):
     return SpecificationDecoratorBase.__new__(self, storage)