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/utilities/passwords.py | |
| parent | 8a84c3602094517d8690b6c7ab7e25c1570d59b7 (diff) | |
| download | mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.gz mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.zst mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.zip | |
Diffstat (limited to 'src/mailman/utilities/passwords.py')
| -rw-r--r-- | src/mailman/utilities/passwords.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mailman/utilities/passwords.py b/src/mailman/utilities/passwords.py index 65c4ff291..95c85c47a 100644 --- a/src/mailman/utilities/passwords.py +++ b/src/mailman/utilities/passwords.py @@ -21,14 +21,13 @@ from __future__ import absolute_import, print_function, unicode_literals __metaclass__ = type __all__ = [ - 'initialize', + 'handle_ConfigurationUpdatedEvent', ] from passlib.context import CryptContext from pkg_resources import resource_string -from zope import event from mailman.interfaces.configuration import ConfigurationUpdatedEvent @@ -57,13 +56,7 @@ class PasswordContext: -# Create and register a post-processing handler for the configuration file. - -def _update_context(event): +def handle_ConfigurationUpdatedEvent(event): if isinstance(event, ConfigurationUpdatedEvent): # Just reset the password context. event.config.password_context = PasswordContext(event.config) - - -def initialize(): - event.subscribers.append(_update_context) |
