summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_basic.py
diff options
context:
space:
mode:
authorJ08nY2017-06-01 15:46:48 +0200
committerJ08nY2017-06-17 19:35:47 +0200
commit6c58abe8a135bd8f572867c170fed19958ca9a09 (patch)
tree8e5706a6217698c808c45a0db22b2e5dd3cbee3f /src/mailman/rest/tests/test_basic.py
parent765f327dfac9c4537184b2073ea4893cf4560ad7 (diff)
downloadmailman-6c58abe8a135bd8f572867c170fed19958ca9a09.tar.gz
mailman-6c58abe8a135bd8f572867c170fed19958ca9a09.tar.zst
mailman-6c58abe8a135bd8f572867c170fed19958ca9a09.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/rest/tests/test_basic.py')
0 files changed, 0 insertions, 0 deletions