summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_systemconf.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_systemconf.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_systemconf.py')
-rw-r--r--src/mailman/rest/tests/test_systemconf.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mailman/rest/tests/test_systemconf.py b/src/mailman/rest/tests/test_systemconf.py
index 5acc38adb..42802068c 100644
--- a/src/mailman/rest/tests/test_systemconf.py
+++ b/src/mailman/rest/tests/test_systemconf.py
@@ -46,8 +46,6 @@ class TestSystemConfiguration(unittest.TestCase):
listname_chars='[-_.0-9a-z]',
noreply_address='noreply',
pending_request_life='3d',
- post_hook='',
- pre_hook='',
self_link='http://localhost:9001/3.0/system/configuration/mailman',
sender_headers='from from_ reply-to sender',
site_owner='noreply@example.com',
@@ -182,7 +180,7 @@ class TestSystemConfiguration(unittest.TestCase):
'paths.here',
'paths.local',
'paths.testing',
- 'plugin.master',
+ 'plugin.example',
'runner.archive',
'runner.bad',
'runner.bounces',