l.a.u.UploadProcessor : class documentation

Part of lp.archiveuploader.uploadprocessor View In Hierarchy

Responsible for processing uploads. See module docstring.
Method __init__ Create a new upload processor.
Method processUploadQueue Search for uploads, and process them.
Method locateDirectories Return a list of upload directories in a given queue.
def __init__(self, base_fsroot, dry_run, no_mails, builds, keep, policy_for_distro, ztm, log):
Create a new upload processor.
Parametersbase_fsrootRoot path for queue to use
dry_runRun but don't commit changes to database
no_mailsDon't send out any emails
buildsInterpret leaf names as build ids
keepLeave the files in place, don't move them away
policy_for_distrocallback to obtain Policy object for a distribution
ztmDatabase transaction to use
logLogger to use for reporting
def processUploadQueue(self, leaf_name=None):
Search for uploads, and process them.

Uploads are searched for in the 'incoming' directory inside the base_fsroot.

This method also creates the 'incoming', 'accepted', 'rejected', and 'failed' directories inside the base_fsroot if they don't yet exist.

def locateDirectories(self, fsroot):
Return a list of upload directories in a given queue.
Parametersfsrootpath to a 'queue' directory to be inspected.
Returnsa list of upload directories found in the queue alphabetically sorted.
API Documentation for Launchpad, generated by pydoctor at 2020-02-22 00:00:10.