summaryrefslogtreecommitdiff
path: root/src/mailman/utilities/plugins.py
diff options
context:
space:
mode:
authorJ08nY2017-06-01 15:46:48 +0200
committerJ08nY2017-08-07 17:39:07 +0200
commit0d4f53b51892866b5cc85ace229b23f4b9bac896 (patch)
tree5394af7e3d9e8895babf93cf4af19480d14f53dd /src/mailman/utilities/plugins.py
parent38a86adcdb78c1944c26a5ab8deddff619b33bcf (diff)
downloadmailman-0d4f53b51892866b5cc85ace229b23f4b9bac896.tar.gz
mailman-0d4f53b51892866b5cc85ace229b23f4b9bac896.tar.zst
mailman-0d4f53b51892866b5cc85ace229b23f4b9bac896.zip
Add per-plugin hooks, add docs about plugins.
- Removes pre_hook, post_hook and ext_dir. With the latter being unused. Warns on startup if the hooks are present in config. - Adds IPlugin interface with pre_hook and post_hook methods. - Adds 'class' config parameter to plugins, which can be set to a class implementing the IPlugin interface, it will be initialized once on Mailman's startup, then before the DB setup the pre_hook will be run, after DB and other components the post_hook will be run. Plugin instances are stored in the config.plugins dict, with keys being their configuration section names.
Diffstat (limited to 'src/mailman/utilities/plugins.py')
0 files changed, 0 insertions, 0 deletions