changed plugin specification: use generic "handle_event" instead of "setup" and "cleanup"

fixed bug in reinitializing of plugins (Closes: #111)
fixed glitch that delayed the results of the plugin_manager to go into effect by one request
This commit is contained in:
lars 2007-01-08 02:30:29 +00:00
parent 0cf35e287c
commit 68e0cddc59
4 changed files with 76 additions and 54 deletions

View file

@ -90,14 +90,12 @@ class CryptoBoxPlugin:
return self.__module__
def setup(self):
"""Any plugin that wants to define bootup actions may override this.
"""
pass
def handle_event(self, event_name, event_info=None):
"""Any plugin that wants to define event actions may override this.
def cleanup(self):
"""Any plugin that wants to define shutdown actions may override this.
currently only the following events are defined:
- "bootup" (the cryptobox server is starting)
- "shutdown" (the cryptobox server is stopping)
"""
pass