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

# Class Commandable

source code

Known Subclasses:
  - OSProcessOrganizer.OSProcessOrganizer
  - , ServiceOrganizer.ServiceOrganizer
  - , Device.Device
  - , ZenEvents.EventCommand.EventCommand
  - , DataRoot.DataRoot
  - , ServiceClass.ServiceClass
  - , DeviceOrganizer.DeviceOrganizer
  - , Service.Service
  - , OSProcessClass.OSProcessClass
  - , OSProcess.OSProcess

Instance Methods | [hide private]
manage_addUserCommand(self, newId=None, desc='', cmd='', REQUEST=None) Add a UserCommand to this device | source code
manage_deleteUserCommand(self, ids=(), REQUEST=None) Delete User Command(s) to this device | source code
manage_editUserCommand(self, commandId, REQUEST=None) Want to redirect back to management tab after a save | source code
manage_doUserCommand(self, commandId=None, REQUEST=None) Execute a UserCommand. | source code
doCommandForTarget(self, cmd, target, out) Execute the given UserCommand on the given target | source code
compile(self, cmd, target) Evaluate command as a tales expression | source code
getUserCommandIds(self) Get the user command ids available in this context | source code
getUserCommands(self, asDict=False) Get the user commands available in this context | source code
getAqChainForUserCommands(self) | source code
redirectToUserCommands(self, REQUEST, commandId=None) Redirect to the page which lists UserCommands for this Commandable object. | source code
getUrlForUserCommands(self) Return url for page which manages user commands | source code
getUserCommand(self, commandId) Returns the command from the current context if it exists | source code
getUserCommandEnvironment(self) Get the environment that provides context for the tales evaluation of a UserCommand. | source code
getUserCommandTargets(self) Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. | source code
write(self, out, lines) Output (maybe partial) result text from a UserCommand. | source code

Class Variables | [hide private]
| defaultTimeout = `60`
| security = `ClassSecurityInfo()`

Method Details | [hide private]

### manage_doUserCommand(self, commandId=None, REQUEST=None) | source code
Execute a UserCommand. If REQUEST then wrap output in proper zenoss html page.