diff options
| author | Barry Warsaw | 2012-07-02 16:56:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-07-02 16:56:35 -0400 |
| commit | bbbf437a64e2bcf2ac72c329f0faf53ed91f3432 (patch) | |
| tree | 3f6a9e84a67b003b65888a0ec2f7bb3397b4e26a /src/mailman/app | |
| parent | 8a84c3602094517d8690b6c7ab7e25c1570d59b7 (diff) | |
| download | mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.gz mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.zst mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.zip | |
More consistency in the way post-configuration changes are processed. Less
magic in the _post_process() method, more ConfigurationUpdatedEvents. More
centralization of event initialization.
Added property Configuration.language_configs.
Instead of initializing events in initialize_2(), initialize them in
initialize_1() and do it before the configuration is loaded.
Diffstat (limited to 'src/mailman/app')
| -rw-r--r-- | src/mailman/app/events.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mailman/app/events.py b/src/mailman/app/events.py index 79376cca1..a4f385239 100644 --- a/src/mailman/app/events.py +++ b/src/mailman/app/events.py @@ -28,13 +28,22 @@ __all__ = [ from zope import event from mailman.app import domain, moderator, subscriptions +from mailman.core import i18n, switchboard +from mailman.languages import manager as language_manager +from mailman.styles import manager as style_manager +from mailman.utilities import passwords def initialize(): """Initialize global event subscribers.""" event.subscribers.extend([ + domain.handle_DomainDeletingEvent, moderator.handle_ListDeletingEvent, + passwords.handle_ConfigurationUpdatedEvent, subscriptions.handle_ListDeletedEvent, - domain.handle_DomainDeletingEvent, + switchboard.handle_ConfigurationUpdatedEvent, + i18n.handle_ConfigurationUpdatedEvent, + style_manager.handle_ConfigurationUpdatedEvent, + language_manager.handle_ConfigurationUpdatedEvent, ]) |
