Package svs_core :: Package commands :: Module scriptcommands :: Class CommandHandler
[show private | hide private]
[frames | no frames]

Class CommandHandler


Method Summary
  __init__(self, host)
  createCommandList(self)
Creates list of scriptable commands on host object.
  getAllCommandDoc(self)
Returns the names of all scriptable commands as a dictionary containing two lists, 'public' and 'private'.
  getCommandDoc(self, command)
Returns the doc string for the command.
  getPrivateCommandDoc(self)
Returns the names of scriptable commands that can be called by the host object.
  getPublicCommandDoc(self)
Returns the names of scriptable commands that can be called by other objects.
  handleCommand(self, command)
Checks if host object responds to received command.
  _addCommandsForObject(self, obj)
Adds methods from specified object to command listings.

Method Details

createCommandList(self)

Creates list of scriptable commands on host object. Scriptable commands start with "cmdprivate_" or "cmdpublic_".

getAllCommandDoc(self)

Returns the names of all scriptable commands as a dictionary containing two lists, 'public' and 'private'.

getCommandDoc(self, command)

Returns the doc string for the command.

This can be used to print help info on a command in response to the '?' argument.

getPrivateCommandDoc(self)

Returns the names of scriptable commands that can be called by the host object.

getPublicCommandDoc(self)

Returns the names of scriptable commands that can be called by other objects.

handleCommand(self, command)

Checks if host object responds to received command. Executes command if found, ignores if not.

_addCommandsForObject(self, obj)

Adds methods from specified object to command listings.

Note: once a command has been added, it cannot be replaced by one with the same name.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:25 2005 http://epydoc.sf.net