diff options
| author | bwarsaw | 2006-12-29 22:20:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-12-29 22:20:25 +0000 |
| commit | f4a456a83b630feb294724ab462c87ca1ce1c3ae (patch) | |
| tree | c5c88540dae8306d11671f603d8975b01803ea16 /Mailman/GatewayManager.py | |
| parent | ae185106a624bfa7888aa8722d35194d3c5150e8 (diff) | |
| download | mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.tar.gz mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.tar.zst mailman-f4a456a83b630feb294724ab462c87ca1ce1c3ae.zip | |
Diffstat (limited to 'Mailman/GatewayManager.py')
| -rw-r--r-- | Mailman/GatewayManager.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Mailman/GatewayManager.py b/Mailman/GatewayManager.py index 094f0c76d..04c630cbe 100644 --- a/Mailman/GatewayManager.py +++ b/Mailman/GatewayManager.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2006 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -12,7 +12,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Mixin class for configuring Usenet gateway. @@ -21,18 +22,18 @@ gateway and cron/gate_news for the news->mail gateway. """ -from Mailman import mm_cfg -from Mailman.i18n import _ +from Mailman.configuration import config + class GatewayManager: def InitVars(self): # Configurable - self.nntp_host = mm_cfg.DEFAULT_NNTP_HOST + self.nntp_host = config.DEFAULT_NNTP_HOST self.linked_newsgroup = '' - self.gateway_to_news = 0 - self.gateway_to_mail = 0 - self.news_prefix_subject_too = 1 + self.gateway_to_news = False + self.gateway_to_mail = False + self.news_prefix_subject_too = True # In patch #401270, this was called newsgroup_is_moderated, but the # semantics weren't quite the same. - self.news_moderation = 0 + self.news_moderation = False |
