From 8938d65327611dded72c7876ffe52e4d4d12ce76 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 10 Dec 2009 22:32:25 -0500 Subject: * Refactor the language manager off of the config object and into a utility. * Fix a few small typos in exception handlers. * Move the initialization of the Zope Component Architecture into the first initialization step. The only reason we couldn't do that previously was because the domain object referenced the config, causing a circularity problem. Refactor the Domain implementation to avoid that. --- src/mailman/core/initialize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mailman/core/initialize.py') diff --git a/src/mailman/core/initialize.py b/src/mailman/core/initialize.py index 707bb3f66..5da2209fd 100644 --- a/src/mailman/core/initialize.py +++ b/src/mailman/core/initialize.py @@ -58,6 +58,7 @@ from mailman.utilities.modules import call_name def initialize_1(config_path=None, propagate_logs=None): """First initialization step. + * Zope component architecture * The configuration system * Run-time directories * The logging subsystem @@ -68,6 +69,8 @@ def initialize_1(config_path=None, propagate_logs=None): :param propagate_logs: Should the log output propagate to stderr? :type propagate_logs: boolean or None """ + zcml = resource_string('mailman.config', 'configure.zcml') + xmlconfig.string(zcml) # By default, set the umask so that only owner and group can read and # write our files. Specifically we must have g+rw and we probably want # o-rwx although I think in most cases it doesn't hurt if other can read @@ -120,11 +123,8 @@ def initialize_2(debug=False): def initialize_3(): """Third initialization step. - * Zope component architecture * Post-hook """ - zcml = resource_string('mailman.config', 'configure.zcml') - xmlconfig.string(zcml) # Run the post-hook if there is one. config = mailman.config.config if config.mailman.post_hook: -- cgit v1.2.3-70-g09d2