Module commandHandlers :: Class CommandHandler
[hide private]
[frames] | no frames]

Class CommandHandler

source code


Some applications have different ways to start or be called, depending on either OS or application version; this base class defines the default behavior.

Classes derived from this class can be used to define these differences on a case-by-case basis at submission time, then the generic prepareCmd method is called to setup the command to run.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
prepareCommand(self, job, cmd)
This method can be used to apply application version-specific or os-specific modifications to the commandline necessary to run the job
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

prepareCommand(self, job, cmd)

source code 

This method can be used to apply application version-specific or os-specific modifications to the commandline necessary to run the job

Parameters:
  • job (qb.Job) - the job object that has been passed to the instance in the back-end code
  • cmd (str) - the cmdline that the job will run
Returns:
the cmd, modified for the appVersion or OS