Logo Search packages:      
Sourcecode: zope-attachmentfield version File versions  Download package

def AttachmentField::FlexStorage::FlexStorage::getFlexStorageBackend (   self,
  instance 
)

    Return the name of the currently used storage backend

Definition at line 131 of file FlexStorage.py.

00131                                              :
        """
            Return the name of the currently used storage backend
        """
        aTool = getToolByName(instance, 'portal_attachment')
        currentFlexStorageBackend = aTool.currentFlexStorageBackend
        if currentFlexStorageBackend in self.flexStorages.keys():
            return self.flexStorages[currentFlexStorageBackend]
        else:
            raise RuntimeError("%s requested, but this storage has not been initialized." % currentFlexStorageBackend)

    security.declareProtected(CMFCorePermissions.ManagePortal, "changeFlexStorageBackend")
    def changeFlexStorageBackend(self, instance, newStorageName, typesWithAF):


Generated by  Doxygen 1.6.0   Back to index