| Trees | Index | Help |
|
|---|
| Module manager :: Class Manager |
|
CommandManager,
HelpManager,
HistoryManager,
HookManager| Method Summary | |
|---|---|
__init__(self)
| |
Tells the manager to create a new session based on another session. | |
Removes everything the manager was managing--essentially reinitializes it. | |
| string |
Returns information managed by this class. |
| list of strings |
Returns the state of something as a list of command strings without the command char (which is added by #write). |
| string |
Returns a one-liner status of the state of this manager for a given session. |
Tells the manager to remove information regarding the session. | |
| Method Details |
|---|
addSession(self, newsession, basesession=None)Tells the manager to create a new session based on another session. For example, when we connected to the 3k mud, we would tell all the managers to clone the common session to the new session created thus populating the new session.
|
clear(self, ses=None)Removes everything the manager was managing--essentially reinitializes it. Override this to clear out the data your manager is managing. This is typically session oriented and gets called by the "#clear" command.
|
getInfo(self, ses, text='')Returns information managed by this class. This is mostly for display to the user--we shouldn't be using this method for Lyntin introspection.
|
getState(self, ses)Returns the state of something as a list of command strings without the command char (which is added by #write). For example, getState on the AliasManager might return:
["alias {t3k} {#ses a localhost 3000}", "alias {toch} {nwnnen;vortex}"]
|
getStatus(self, ses)Returns a one-liner status of the state of this manager for a given session. If this manager does not apply to sessions then it should return an empty string. For example, the SubstituteManager which is holding 5 substitutes and 2 gags for a session named "3k" would return the string:"5 substitute(s). 2 gag(s)."But the ThreadManager which is a globally scoped manager and doesn't apply to the "3k" session would return an empty string.
|
removeSession(self, ses)Tells the manager to remove information regarding the session.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Mon Apr 28 21:11:25 2003 | http://epydoc.sf.net |