Py-Modularapp

Home Pen & Paper Gaming VAR D&D/D20 Programming C SYSOPT GDHLS Python Py-Modularapp Extended Threading

Cheese Shop Entry

This module program allows a developer to publish functions and slots in a central repository. Published functions can be called by name (all published functions with the specified named will be called). Using a slightly different methods classes can publish "slots". Other classes loaded later can hook into these slots. When the publishing class activates a slot, it will call all hooks into the slot.

This class has several useful features - such as name and type referencing of hooks/slots. Hooks can be given priority of execution (both globally as a class, and individualy as a function). Everything is done by naming convention - so to make this work, you simple have to give the proper name/type to class members. A 'plugin' class is given, inheriting this can make the process easier.

downloads: This module is public domain.

(C) 2007 S James S Stapleton