summaryrefslogtreecommitdiff
path: root/src/mailman/core
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-02 16:08:58 -0400
committerBarry Warsaw2012-07-02 16:08:58 -0400
commit3e2231b8835820d240112e7e07cff2a369f178f2 (patch)
tree513c973ae93f36efe969793e1a8abb28efbfc7bd /src/mailman/core
parent762af9a7d81fe88327c37f29c851a4d6f7bdaa45 (diff)
downloadmailman-3e2231b8835820d240112e7e07cff2a369f178f2.tar.gz
mailman-3e2231b8835820d240112e7e07cff2a369f178f2.tar.zst
mailman-3e2231b8835820d240112e7e07cff2a369f178f2.zip
* `passlib`_ is now used for all password hashing instead of flufl.password.
The default hash is `sha512_crypt`. * Events renamed and moved: * `mailman.chains.accept.AcceptNotification` * `mailman.chains.base.ChainNotification` * `mailman.chains.discard.DiscardNotification` * `mailman.chains.hold.HoldNotification` * `mailman.chains.owner.OwnerNotification` * `mailman.chains.reject.RejectNotification` changed to (respectively): * `mailman.interfaces.chains.AcceptEvent` * `mailman.interfaces.chains.ChainEvent` * `mailman.interfaces.chains.DiscardEvent` * `mailman.interfaces.chains.HoldEvent` * `mailman.interfaces.chains.AcceptOwnerEvent` * `mailman.interfaces.chains.RejectEvent` * A `ConfigurationUpdatedEvent` is triggered when the system-wide global configuration stack is pushed or popped. * With the switch to `passlib`_, `[passwords]password_scheme` has been removed. Instead use `[passwords]path` to specify where to find the `passlib.cfg` file. See the comments in `schema.cfg` for details.
Diffstat (limited to 'src/mailman/core')
-rw-r--r--src/mailman/core/initialize.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/core/initialize.py b/src/mailman/core/initialize.py
index 389a45f3b..255e22ed9 100644
--- a/src/mailman/core/initialize.py
+++ b/src/mailman/core/initialize.py
@@ -110,6 +110,10 @@ def initialize_1(config_path=None):
# o-rwx although I think in most cases it doesn't hurt if other can read
# or write the files.
os.umask(007)
+ # Initialize configuration event subscribers. This must be done before
+ # setting up the configuration system.
+ from mailman.utilities.passwords import initialize as initialize_passwords
+ initialize_passwords()
# config_path will be set if the command line argument -C is given. That
# case overrides all others. When not given on the command line, the
# configuration file is searched for in the file system.