Trees | Index | Help |
|
---|
Package ZenModel :: Module Commandable :: Class Commandable |
|
DataRoot
,
Device
,
DeviceOrganizer
,
OSProcess
,
OSProcessClass
,
OSProcessOrganizer
,
Service
,
ServiceClass
,
ServiceOrganizer
Method Summary | |
---|---|
Evaluate command as a tales expression | |
Execute the given UserCommand on the given target | |
getAqChainForUserCommands(self)
| |
Return url for page which manages user commands | |
Returns the command from the current context if it exists | |
Get the environment that provides context for the tales evaluation of a UserCommand. | |
Get the user commands available in this context | |
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. | |
Add a UserCommand to this device | |
Delete User Command(s) to this device | |
Execute a UserCommand. | |
Want to redirect back to management tab after a save | |
Redirect to the page which lists UserCommands for this Commandable object. | |
Output (maybe partial) result text from a UserCommand. |
Class Variable Summary | |
---|---|
tuple |
__ac_permissions__ = (('Change Device', ('manage_doUserC...
|
int |
defaultTimeout = 60 |
PermissionRole |
getUserCommands__roles__ = <PermissionRole object at 0x1...
|
PermissionRole |
manage_addUserCommand__roles__ = <PermissionRole object ...
|
PermissionRole |
manage_deleteUserCommand__roles__ = <PermissionRole obje...
|
PermissionRole |
manage_doUserCommand__roles__ = <PermissionRole object a...
|
tuple |
manage_editUserCommand__roles__ = ('Manager',)
|
Method Details |
---|
compile(self, cmd, target)Evaluate command as a tales expression |
doCommandForTarget(self, cmd, target, out)Execute the given UserCommand on the given target |
getUrlForUserCommands(self)Return url for page which manages user commands |
getUserCommand(self, commandId)Returns the command from the current context if it exists |
getUserCommandEnvironment(self)Get the environment that provides context for the tales evaluation of a UserCommand. |
getUserCommands(self, asDict=False)Get the user commands available in this context |
getUserCommandTargets(self)Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. |
manage_addUserCommand(self, newId=None, desc='', cmd='', REQUEST=None)Add a UserCommand to this device |
manage_deleteUserCommand(self, ids=(), REQUEST=None)Delete User Command(s) to this device |
manage_doUserCommand(self, commandId=None, REQUEST=None)Execute a UserCommand. If REQUEST then wrap output in proper zenoss html page. |
manage_editUserCommand(self, commandId, REQUEST=None)Want to redirect back to management tab after a save |
redirectToUserCommands(self, REQUEST, commandId=None)Redirect to the page which lists UserCommands for this Commandable object. |
write(self, out, lines)Output (maybe partial) result text from a UserCommand. |
Class Variable Details |
---|
__ac_permissions__
|
defaultTimeout
|
getUserCommands__roles__
|
manage_addUserCommand__roles__
|
manage_deleteUserCommand__roles__
|
manage_doUserCommand__roles__
|
manage_editUserCommand__roles__
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 | http://epydoc.sf.net |