Package posterity :: Package admin :: Module inject :: Class InjectCommand

Class InjectCommand



        object --+    
                 |    
admin.AdminCommand --+
                     |
                    InjectCommand

Instance Methods
 
setup_optparser(self)
Configure the OptionParser
 
finalize_options(self)
Decide in the final value for all options and arguments
 
run(self)
Cary out the command's actions

Inherited from admin.AdminCommand: __init__, run_command

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  cmd_name = 'inject'
  short_help = 'Inject email messages into an ACCOUNT'
  usage = '%prog inject [options] account'

Inherited from admin.AdminCommand: run_in_transaction

Properties

Inherited from object: __class__

Method Details

setup_optparser(self)

 

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

Overrides: admin.AdminCommand.setup_optparser
(inherited documentation)

finalize_options(self)

 

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.

Overrides: admin.AdminCommand.finalize_options
(inherited documentation)

run(self)

 

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.

Overrides: admin.AdminCommand.run
(inherited documentation)