* 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.
Showing with 124 additions and 57 deletions
|...||...||@@ -116,7 +116,8 @@ The language must be known to Mailman.|
|Invalid language code: ee|
|>>> config.languages.add('ee', 'iso-8859-1', 'Freedonian')|
|>>> from mailman.interfaces.languages import ILanguageManager|
|>>> getUtility(ILanguageManager).add('ee', 'iso-8859-1', 'Freedonian')|
|>>> args.quiet = False|
|>>> args.listname = ['[email protected]']|