Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Module config :: Class PreActionHook |
|
object
--+ |ActionHook
--+ | PreActionHook
Class representing a pre-action hook associated with an action.
A hook associated with an action is a shell command to be executed either before or after a named action is executed. In this case, a pre-action hook is executed before the named action.
As with all of the other classes that represent configuration
sections, all of these values are optional. It is up to some higher-level
construct to decide whether everything they need is filled in. Some
validation is done on non-None
assignments through the use
of the Python property()
construct.
before
instance variable is always set to
True in this class.
Method Summary | |
---|---|
Constructor for the PreActionHook class. | |
Official string representation for class instance. | |
Inherited from ActionHook | |
Informal string representation for class instance. | |
Definition of equals operator for this class. | |
Property target used to get the action name. | |
Property target used to get the after flag. | |
Property target used to get the before flag. | |
Property target used to get the command. | |
Property target used to set the action name. | |
Property target used to set the command. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
Inherited from ActionHook | |
action : Action this hook is associated with. | |
command : Shell command to execute. | |
before : Indicates whether command should be executed before action. | |
after : Indicates whether command should be executed after action. |
Method Details |
---|
__init__(self,
action=None,
command=None)
Constructor for the |
__repr__(self)
Official string representation for class instance.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:30 2007 | http://epydoc.sf.net |