mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
introduce global plugin manager
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import time
|
||||
from .hookspec import account_hookimpl
|
||||
from .hookspec import account_hookimpl, global_hookimpl
|
||||
|
||||
|
||||
@global_hookimpl
|
||||
def at_account_init(account, logid):
|
||||
account._evlogger = account.add_account_plugin(EventLogger(account, logid=logid))
|
||||
|
||||
|
||||
class EventLogger:
|
||||
|
||||
Reference in New Issue
Block a user