Package lyntin :: Module manager
[show private | hide private]
[frames | no frames]

Module lyntin.manager

Managers manage things. Most managers subclass the "manager.Manager" class. It doesn't really provide a lot of functionality, but it allows us to group them all and treat them all the same. Adding new managers is much easier because of this.

Also, managers register themselves with the engine via the "exported.add_manager" function. The engine will cycle through registered managers for things like status and persistence. In addition, registered managers get told when the user has created a new session and when the user has ended a session through the "addSession" and "removeSession" methods.

To build a new manager, you need to:
  1. extend the manager.Manager class
  2. implement all the methods of manager.Manager that are marked as needing to be overridden
  3. implement the additional methods that your manager needs
  4. create a "load()" function in the module your manager is defined in which adds the manager to the engine via "exported.add_manager(...)"
Then to dynamically load your new module and instantiate your new manager you can do one of two things:
  1. put the .py file in the modules/ subdirectory where it will be loaded automatcially
  2. execute an "#import modulenamehere" inside of Lyntin which will import the module

Classes
Manager Base manager class for managing things in Lyntin.

Generated by Epydoc 2.1 on Mon Aug 9 09:17:42 2004 http://epydoc.sf.net