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
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)
def __new__(self, base_directory, storage, layout='automatic'): return SpecificationDecoratorBase.__new__(self, storage)