summaryrefslogtreecommitdiff
path: root/Mailman/GatewayManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/GatewayManager.py')
-rw-r--r--Mailman/GatewayManager.py19
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