| Trees | Index | Help |
|
|---|
| Module exported |
|
| Function Summary | |
|---|---|
The best way to add commands to Lyntin. | |
| string |
Adds a help topic to the structure. |
Registers a manager with the engine. | |
| string |
Grabs the variable manager (which we're hoping is using the same expand_vars as what's registered--only time will tell) and expands variables using the variable manager and its varmap. |
| string |
Grabs the variable manager (which we're hoping is using the same expand_vars as what's registered--only time will tell) and expands variables using the variable manager and its varmap. |
| list of session.Session's |
Returns a list of the active sessions including the common one. |
| list of strings |
Returns a list of the commands currently bound. |
| session.Session |
Returns the current session. |
| engine.Engine |
Nice way of retrieving the engine instance. |
| string |
Retrieves a help topic via a fully qualified name. |
| list of strings |
Retrieves the history as a oldest to youngest list of strings. |
| Hook |
If the hook exists, returns the hook. |
| manager.Manager |
Retrieves a manager from the engine. |
| int |
Returns the total number of errors Lyntin has had thus far. |
| session.Session |
Returns a named session or None if the session doesn't exist. |
Registers a function with a hook. | |
If the hook exists, unregisters the func from the hook. | |
The best way of executing a Lyntin command as if the user had typed it. | |
| boolean |
Removes a command from Lyntin. |
Removes a help topic from Lyntin. | |
| boolean |
Removes a manager from the engine. |
Changes the current session to another session. | |
Sets the number of errors Lyntin has had thus far. | |
This adds one to the current error count and checks to see if we're over our limit. | |
Calls engine.myengine.writeError which writes ERROR message. | |
Calls engine.myengine.writeMessage which writes LTDATA message. | |
Calls engine.myengine.writeMudData which writes a MUDDATA message. | |
Convenience method for grabbing the traceback, formatting it, piping it through write_error, with a message for the user. | |
Calls engine.myengine.writeUI which writes a message to the ui. | |
Calls engine.myengine.writeUserData which writes a USERDATA message. | |
| Function Details |
|---|
add_command(cmd, func, arguments=None, argoptions=None, helptext='')The best way to add commands to Lyntin.
|
add_help(fqn, helptext)Adds a help topic to the structure. See the helpmanager documentation for more details as to what the helptext should look like.
|
add_manager(name, mgr)Registers a manager with the engine.
|
expand_ses_arguments(text, ses)Grabs the variable manager (which we're hoping is using the same expand_vars as what's registered--only time will tell) and expands variables using the variable manager and its varmap. Should be used for arguments that were passed into a command, since in some modes these will have already been fully processed.
|
expand_ses_vars(text, ses)Grabs the variable manager (which we're hoping is using the same expand_vars as what's registered--only time will tell) and expands variables using the variable manager and its varmap.
|
get_active_sessions()Returns a list of the active sessions including the common one.
|
get_commands()Returns a list of the commands currently bound.
|
get_current_session()Returns the current session.
|
get_engine()Nice way of retrieving the engine instance.
|
get_help(fqn)Retrieves a help topic via a fully qualified name.
|
get_history(count=30)Retrieves the history as a oldest to youngest list of strings.
|
get_hook(hookname)If the hook exists, returns the hook. Otherwise it creates a new hook and returns that.
|
get_manager(name)Retrieves a manager from the engine.
|
get_num_errors()Returns the total number of errors Lyntin has had thus far.
|
get_session(name)Returns a named session or None if the session doesn't exist.
|
hook_register(hookname, func, place=None)Registers a function with a hook.
|
hook_unregister(hookname, func)If the hook exists, unregisters the func from the hook.
|
lyntin_command(text, internal=0, session=None)The best way of executing a Lyntin command as if the user had typed it.
|
remove_command(text)Removes a command from Lyntin.
|
remove_help(fqn)Removes a help topic from Lyntin.
|
remove_manager(name)Removes a manager from the engine.
|
set_current_session(ses)Changes the current session to another session.
|
set_num_errors(num)Sets the number of errors Lyntin has had thus far. Do be careful when setting this because Lyntin keeps track of errors for a reason.
|
tally_error()This adds one to the current error count and checks to see if we're over our limit. If we are, it enqueues a shutdown event which will shutdown Lyntin. |
write_error(text, ses=None)Calls engine.myengine.writeError which writes ERROR message. If there is no engine instance available, it prints it to sysout.
|
write_message(text, ses=None)Calls engine.myengine.writeMessage which writes LTDATA message. If there is no engine instance available, it prints it to sysout.
|
write_mud_data(text, ses=None)Calls engine.myengine.writeMudData which writes a MUDDATA message. If there is no engine instance available, it prints it to sysout.
|
write_traceback(message='', ses=None)Convenience method for grabbing the traceback, formatting it, piping it through write_error, with a message for the user.
|
write_ui(text)Calls engine.myengine.writeUI which writes a message to the ui. If there is no engine instance available, it prints it to sysout.
|
write_user_data(text, ses=None)Calls engine.myengine.writeUserData which writes a USERDATA message. If there is no engine instance available, it prints it to sysout.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Mon Apr 28 21:11:25 2003 | http://epydoc.sf.net |