summaryrefslogtreecommitdiff
path: root/Mailman/Gui/Topics.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-14 21:23:28 -0400
committerBarry Warsaw2007-07-14 21:23:28 -0400
commit327865eaf118f40063366acad9c7d97487e010d6 (patch)
treeeda494bb7560b1427813ae7ec51a22e3d0444703 /Mailman/Gui/Topics.py
parent288ae405b09baa443eb1b39422c48c315fbb2e5a (diff)
downloadmailman-327865eaf118f40063366acad9c7d97487e010d6.tar.gz
mailman-327865eaf118f40063366acad9c7d97487e010d6.tar.zst
mailman-327865eaf118f40063366acad9c7d97487e010d6.zip
Diffstat (limited to 'Mailman/Gui/Topics.py')
-rw-r--r--Mailman/Gui/Topics.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Gui/Topics.py b/Mailman/Gui/Topics.py
index 29613f3dd..731460a10 100644
--- a/Mailman/Gui/Topics.py
+++ b/Mailman/Gui/Topics.py
@@ -17,10 +17,10 @@
import re
-from Mailman import mm_cfg
from Mailman import Utils
-from Mailman.i18n import _
from Mailman.Gui.GUIBase import GUIBase
+from Mailman.configuration import config
+from Mailman.i18n import _
OR = '|'
@@ -33,12 +33,12 @@ class Topics(GUIBase):
def GetConfigInfo(self, mlist, category, subcat=None):
if category <> 'topics':
return None
- WIDTH = mm_cfg.TEXTFIELDWIDTH
+ WIDTH = config.TEXTFIELDWIDTH
return [
_('List topic keywords'),
- ('topics_enabled', mm_cfg.Radio, (_('Disabled'), _('Enabled')), 0,
+ ('topics_enabled', config.Radio, (_('Disabled'), _('Enabled')), 0,
_('''Should the topic filter be enabled or disabled?'''),
_("""The topic filter categorizes each incoming email message
@@ -61,7 +61,7 @@ class Topics(GUIBase):
href="?VARHELP=topics/topics_bodylines_limit">topics_bodylines_limit</a>
configuration variable.""")),
- ('topics_bodylines_limit', mm_cfg.Number, 5, 0,
+ ('topics_bodylines_limit', config.Number, 5, 0,
_('How many body lines should the topic matcher scan?'),
_("""The topic matcher will scan this many lines of the message
@@ -74,7 +74,7 @@ class Topics(GUIBase):
until a non-header-like line is encountered.
""")),
- ('topics', mm_cfg.Topics, 0, 0,
+ ('topics', config.Topics, 0, 0,
_('Topic keywords, one per line, to match against each message.'),
_("""Each topic keyword is actually a regular expression, which is