olc
index
(built-in)

This is the Python wrapper for the online creation module. Allows users
to set up new menus and handlers for editing data, such as characters,
while online.

 
Functions
       
do_olc(...)
do_olc(sock, menu_func, chooser_func, parse_func, saver_func, data, autosave=False)
 
Entry point to the olc system. See olc2/olc.h for documentation.
extend(...)
extend(olc_type, optname, menu_func, chooser_func, parse_func = None,
       fromproto_func = None, toproto_func = None)
 
Register a new olc menu extender. Types are medit, redit, oedit, pcedit, accedit, zedit. See
olc2/olc_extender.h for documentation.
item_add_olc(...)
item_add_olc(itemtype, menu_func, chooser_func, parse_func,
             fromproto_func, toproto_func)
 
Register a new olc handler for an item type. See items/iedit.h for
documentation.

 
Data
        MENU_CHOICE_INVALID = -1
MENU_CHOICE_OK = -2
MENU_NOCHOICE = 0