l.s.s.e.ArchiveExpirer(LaunchpadCronScript) : class documentation

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

Helper class for expiring old PPA binaries.

Any PPA binary older than 30 days that is superseded or deleted will be marked for immediate expiry.

Method add_my_options Add script command line options.
Method determineSourceExpirables Return expirable libraryfilealias IDs.
Method determineBinaryExpirables Return expirable libraryfilealias IDs.
Method main Define the meat of your script here. Must be defined.

Inherited from LaunchpadCronScript:

Method __init__ Construct new LaunchpadScript.
Method get_last_activity Return the last activity, if any.
Method record_activity Record the successful completion of the script.

Inherited from LaunchpadScript (via LaunchpadCronScript):

Method handle_options Undocumented
Method name Enable subclasses to override with command-line arguments.
Method dbuser Enable subclasses to override with command-line arguments.
Method login Super-convenience method that avoids the import.
Method lockfilename Return lockfilename.
Method lockfilepath Undocumented
Method setup_lock Create lockfile.
Method lock_or_die Attempt to lock, and sys.exit(1) if the lock's already taken.
Method unlock Release the lock. Do this before going home.
Method run Actually run the script, executing zcml and initZopeless.
Method lock_and_run Call lock_or_die(), and then run() the script.
Method _init_zca Initialize the ZCA, this can be overridden for testing purposes.
Method _init_db Initialize the database transaction.
def add_my_options(self):
Add script command line options.
def determineSourceExpirables(self, num_days):
Return expirable libraryfilealias IDs.
def determineBinaryExpirables(self, num_days):
Return expirable libraryfilealias IDs.
def main(self):
Define the meat of your script here. Must be defined.

Raise LaunchpadScriptFailure if you encounter an error condition that makes it impossible for you to proceed; sys.exit(1) will be invoked in that situation.

API Documentation for Launchpad, generated by pydoctor at 2020-07-05 00:00:04.