l.a.s.p.DeathRowProcessor(PublisherScript) : class documentation

Part of lp.archivepublisher.scripts.processdeathrow View In Hierarchy

No class docstring
Method add_my_options Optionally customize this hook to define your own options.
Method main Define the meat of your script here. Must be defined.
Method processDeathRow Process death-row for the given archive.

Inherited from PublisherScript:

Method addDistroOptions Undocumented
Method findSelectedDistro Find the Distribution named by the --distribution option.
Method findDerivedDistros Find all Ubuntu-derived distributions.
Method findDistros Find the selected distribution(s).

Inherited from LaunchpadCronScript (via PublisherScript):

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 PublisherScript, 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):

Optionally customize this hook to define your own options.

This method should contain only a set of lines that follow the template:

self.parser.add_option("-f", "--foo", dest="foo",
default="foobar-makes-the-world-go-round", help="You are joking, right?")
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.

def processDeathRow(self, archive):
Process death-row for the given archive.

It handles the current DB transaction according to the results of the operation just executed, i.e, commits successful runs and aborts runs with errors. It also respects 'dry-run' command-line option.

API Documentation for Launchpad, generated by pydoctor at 2020-01-25 00:00:13.