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:
parent
0cf35e287c
commit
68e0cddc59
4 changed files with 76 additions and 54 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue