l.s.s.f.ChrootManager : class documentation

Part of lp.soyuz.scripts.ftpmaster View In Hierarchy

Chroot actions wrapper.

The 'distroarchseries' argument is mandatory and 'filepath' is optional.

'filepath' is required by some allowed actions as source or destination,

ChrootManagerError will be raised if anything wrong occurred in this class, things like missing parameter or infrastructure pieces not in place.

Method __init__ Undocumented
Method add Create a new PocketChroot record.
Method update Update a PocketChroot record.
Method remove Overwrite existing PocketChroot file to none.
Method get Download chroot file from Librarian and store.
Method _upload Upload the self.filepath contents to Librarian.
Method _getPocketChroot Retrive PocketChroot record.
Method _update Base method for add and update action.
def __init__(self, distroarchseries, filepath=None):
Undocumented
def _upload(self):
Upload the self.filepath contents to Librarian.

Return the respective ILibraryFileAlias instance. Raises ChrootManagerError if it could not be found.

def _getPocketChroot(self):
Retrive PocketChroot record.

Return the respective IPocketChroot instance. Raises ChrootManagerError if it could not be found.

def _update(self):
Base method for add and update action.
def add(self):
Create a new PocketChroot record.

Raises ChrootManagerError if self.filepath isn't set. Update of pre-existing PocketChroot record will be automatically handled. It's a bind to the self.update method.

def update(self):
Update a PocketChroot record.

Raises ChrootManagerError if filepath isn't set Creation of non-existing PocketChroot records will be automatically handled.

def remove(self):
Overwrite existing PocketChroot file to none.

Raises ChrootManagerError if the chroot record isn't found.

def get(self):
Download chroot file from Librarian and store.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.