| Trees | Index | Help |
|
|---|
| Module helpmanager :: Class HelpManager |
|
Manager --+
|
HelpManager
The HelpManager exists on the engine scoping--there is only one per Lyntin instance. It holds a hierarchy of help texts which can be retrieved and perused through via the #help user command. In general, it's best to access the HelpManager instance through the exported module.
Help texts are indexed by an 'fqn' which is a fully-qualified-name. For example, the #alias command would be under 'commands.alias' where 'commands' is the category in the help hierarchy that it goes under and 'alias' is the help text topic name.
Help text can also handle options set in the text in itself. Currently the only option we support is "category". This will be used if the fqn you supply to the addHelp call is lacking a category--for example 'alias'.
FIXME - needs more info here| Method Summary | |
|---|---|
__init__(self)
| |
| string |
Adds a help text to the hierarchy. |
Tells the manager to create a new session based on another session. (inherited from Manager)
| |
Removes everything the manager was managing--essentially reinitializes it. (inherited from Manager)
| |
| tuple of (string, string, string) |
Retrieves the help topic requested. |
| string |
Returns information managed by this class. (inherited from Manager)
|
| (string, list of strings) |
Retrieves the help topic requested. |
| list of strings |
Returns the state of something as a list of command strings without the command char (which is added by #write). (inherited from Manager)
|
| string |
Returns a one-liner status of the state of this manager for a given session. (inherited from Manager)
|
Takes in a fully-qualified name and attempts to remove it from the structure. | |
Tells the manager to remove information regarding the session. (inherited from Manager)
| |
| Method Details |
|---|
addHelp(self, fqn, helptext)Adds a help text to the hierarchy. Use the 'exported.add_help' and not this directly.
|
getHelp(self, fqn)Retrieves the help topic requested. This is the hard-core attempt at finding help text. It will look for it outright, then try searching, then try black magic.
|
getNode(self, fqn)Retrieves the help topic requested. The difference between this and getHelp is that getHelp will do searching and try to find the best topic for what you asked for. This will return the topic at the prescribed place or throw an exception if it doesn't exist. This is better for exporting help topics to a manual of some kind.
|
removeHelp(self, fqn)Takes in a fully-qualified name and attempts to remove it from the structure.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Mon Apr 28 21:11:25 2003 | http://epydoc.sf.net |