Package Products :: Package ZenModel :: Module actions :: Class CommandAction
[hide private]
[frames] | no frames]

Class CommandAction

source code

      object --+    
               |    
     IActionBase --+
                   |
      object --+   |
               |   |
TargetableAction --+
                   |
                  CommandAction

Instance Methods [hide private]
 
configure(self, options) source code
 
setupAction(self, dmd)
Some actions need to configure themselves with properties from the dmd.
source code
 
execute(self, notification, signal) source code
 
executeOnTarget(self, notification, signal, target) source code
 
_execute(self, notification, signal, extra_env={}) source code
 
getActionableTargets(self, target) source code
 
updateContent(self, content=None, data=None) source code
 
_escapeEvent(self, evt)
Escapes the relavent fields of an event context for event commands.
source code
 
_wrapInQuotes(self, msg)
Wraps the message in quotes, escaping any existing quote.
source code

Inherited from IActionBase: generateJavascriptContent, getDefaultData, getInfo

Inherited from TargetableAction: executeBatch, getTargets, handleExecuteError

Class Variables [hide private]
  id = 'command'
  name = 'Command'
  actionContentInfo = ICommandActionContentInfo
  shouldExecuteInBatch = False
Method Details [hide private]

configure(self, options)

source code 
Overrides: IActionBase.configure

setupAction(self, dmd)

source code 

Some actions need to configure themselves with properties from the dmd. This is their opportunity to do so.

Overrides: TargetableAction.setupAction
(inherited documentation)

execute(self, notification, signal)

source code 
Overrides: TargetableAction.execute

_wrapInQuotes(self, msg)

source code 

Wraps the message in quotes, escaping any existing quote.

Before: How do you pronounce "Zenoss"? After: "How do you pronounce "Zenoss"?"