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:
-
extend the manager.Manager class
-
implement all the methods of manager.Manager that are marked as
needing to be overridden
-
implement the additional methods that your manager needs
-
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:
-
put the .py file in the modules/ subdirectory where it will be
loaded automatcially
-
execute an "#import modulenamehere" inside of Lyntin
which will import the module
| Classes |
Manager |
Base manager class for managing things in Lyntin. |