l.t.s.r.RemoveTranslations(LaunchpadScript) : class documentation

Part of lp.translations.scripts.remove_translations View In Hierarchy

Remove specific `TranslationMessage`s from the database.

The script accepts a wide range of options to specify exactly which
messages need deleting.  It will refuse to run if the options are so
non-specific that the command is more likely to be a mistake than a
valid use case.  In borderline cases, it may be persuaded to run
using a "force" option.
Method add_my_options See LaunchpadScript.
Method main See LaunchpadScript.
Method _check_constraints_safety Are these options to the deletion script sufficiently safe?

Inherited from LaunchpadScript:

Method __init__ Construct new LaunchpadScript.
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 record_activity Hook to record script activity.
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):
See LaunchpadScript.
def _check_constraints_safety(self):
Are these options to the deletion script sufficiently safe?
ReturnsBoolean approval and output message. All disapprovals come with an explanation; some approvals come with an informational message.
def main(self):
See LaunchpadScript.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.