Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|
Checks whether or not it is likely for the given args to be run successfully by the given command. This is useful for plugins which have significant start up times. Simply return True is a possible solution. The default implementation checks that the subclass has a method matching the first argument, such that the default __call__() implementation could dispatch to it. Or if no arguments are given, True is returned since self._noargs() can be called.
|
Method called when __call__() is called without any arguments. Some implementations may want to drop the user into a shell or read from standard in. By default, help() is printed.
|
Main dispatch method for a control instance. The default implementation assumes that the *args consists of either no elements or exactly one list of strings ==> (["str"],) If no args are present, _noargs is called. Subclasses may want to read from stdin or drop into a shell from _noargs(). Otherwise, the rest of the arguments are passed to the method named by the first argument, if _likes() returns True.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 2 10:30:07 2009 | http://epydoc.sourceforge.net |