diff options
| author | Barry Warsaw | 2009-12-10 22:32:25 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-10 22:32:25 -0500 |
| commit | 8938d65327611dded72c7876ffe52e4d4d12ce76 (patch) | |
| tree | 7e2d5c354dd53f1d3f8c42b4a11a9b58b2c2fcb1 /src/mailman/languages | |
| parent | fbc81f61609ce0504245934d9bed0690fbd331a7 (diff) | |
| download | mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.tar.gz mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.tar.zst mailman-8938d65327611dded72c7876ffe52e4d4d12ce76.zip | |
* 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.
Diffstat (limited to 'src/mailman/languages')
| -rw-r--r-- | src/mailman/languages/manager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/languages/manager.py b/src/mailman/languages/manager.py index 96c00d09f..03978da4e 100644 --- a/src/mailman/languages/manager.py +++ b/src/mailman/languages/manager.py @@ -68,3 +68,7 @@ class LanguageManager: def __contains__(self, code): """See `ILanguageManager`.""" return code in self._languages + + def clear(self): + """See `ILanguageManager`.""" + self._languages.clear() |
