Storage.py

Classes

Storage

Functions


Storage

class storing information about an storage

Derived from

SimpleItem

Methods

Created
__init__
deletePI
isAvailable
isUsed
manage_beforeDelete
regesterPI


Storage.Created

Created(self)

 return the storage's creating time


Storage.__init__

__init__(self, newid="", petitionId="")

 constructor


Storage.deletePI

deletePI(self)

 delete petitionId and delete mount point


Storage.isAvailable

isAvailable(self)

 if not regester petitionId


Storage.isUsed

isUsed(self)

 if regester petitionId


Storage.manage_beforeDelete

manage_beforeDelete(self, item, container)

 erase "%%include" line inside config file, and delete storage setting file


Storage.regesterPI

regesterPI(self, pi)

 regester petitionId and add mount point


*