Home | Trees | Indices | Help |
|
---|
|
object --+ | AdminCommand
Posterity admin command base class
New admin commands can dynamically be added to the posterity-admin
script by subclassing this class and registering it under the
posterity.admin_commands
entry point.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
cmd_name = None
|
|
run_in_transaction = True
|
|
short_help =
|
|
usage =
|
Properties | |
Inherited from |
Method Details |
|
Decide in the final value for all options and arguments This methiod is called after the command line has been parsed and the resulting options and arguments are stored in self.options and self.args. If a valid database connection string is stored in self.db_url the following self.run()-call will be wrapped inside a database transaction. |
Cary out the command's actions This method is invoked after the command line has been parsed. All AdminCommand subclasses need to implement this method. |
Configure the OptionParser Commands that want to accept additional command line options need to define them using The "self.parser.add_option(...)" method. This method will be called before the command line is parsed |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Oct 1 20:58:01 2007 | http://epydoc.sourceforge.net |