diff options
| -rw-r--r-- | Mailman/Gui/Archive.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Autoresponse.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Bounce.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Digest.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/General.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Language.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/NonDigest.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Topics.py | 4 | ||||
| -rw-r--r-- | Mailman/Gui/Usenet.py | 4 |
9 files changed, 27 insertions, 9 deletions
diff --git a/Mailman/Gui/Archive.py b/Mailman/Gui/Archive.py index b605b99b5..2f60cc4d1 100644 --- a/Mailman/Gui/Archive.py +++ b/Mailman/Gui/Archive.py @@ -23,7 +23,9 @@ class Archive: def GetConfigCategory(self): return 'archive', _('Archiving Options') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'archive': + return None return [ _("List traffic archival policies."), diff --git a/Mailman/Gui/Autoresponse.py b/Mailman/Gui/Autoresponse.py index ff2e8397a..86909fca9 100644 --- a/Mailman/Gui/Autoresponse.py +++ b/Mailman/Gui/Autoresponse.py @@ -25,7 +25,9 @@ class Autoresponse: def GetConfigCategory(self): return 'autoreply', _('Auto-responder') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'autoreply': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH return [ diff --git a/Mailman/Gui/Bounce.py b/Mailman/Gui/Bounce.py index 54d56647c..3562d0ddb 100644 --- a/Mailman/Gui/Bounce.py +++ b/Mailman/Gui/Bounce.py @@ -23,7 +23,9 @@ class Bounce: def GetConfigCategory(self): return 'bounce', _('Bounce detection') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'bounce': + return None return [ _('''Policies regarding systematic processing of bounce messages, to help automate recognition and handling of defunct diff --git a/Mailman/Gui/Digest.py b/Mailman/Gui/Digest.py index ec08bad1c..326f62f50 100644 --- a/Mailman/Gui/Digest.py +++ b/Mailman/Gui/Digest.py @@ -26,7 +26,9 @@ class Digest: def GetConfigCategory(self): return 'digest', _('Digest options') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'digest': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH info = [ diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py index de9a4632f..c452a0568 100644 --- a/Mailman/Gui/General.py +++ b/Mailman/Gui/General.py @@ -27,7 +27,9 @@ class General: def GetConfigCategory(self): return 'general', _('General Options') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat): + if category <> 'general': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH return [ diff --git a/Mailman/Gui/Language.py b/Mailman/Gui/Language.py index 4a6279174..42245dff8 100644 --- a/Mailman/Gui/Language.py +++ b/Mailman/Gui/Language.py @@ -28,7 +28,9 @@ class Language: def GetConfigCategory(self): return 'language', _('Language options') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'language': + return None # Set things up for the language choices langs = mlist.GetAvailableLanguages() langnames = [_(Utils.GetLanguageDescr(L)) for L in langs] diff --git a/Mailman/Gui/NonDigest.py b/Mailman/Gui/NonDigest.py index afe9f4b52..f25e3f9e4 100644 --- a/Mailman/Gui/NonDigest.py +++ b/Mailman/Gui/NonDigest.py @@ -27,7 +27,9 @@ class NonDigest: def GetConfigCategory(self): return 'nondigest', _('Non-digest options') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'nondigest': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH info = [ diff --git a/Mailman/Gui/Topics.py b/Mailman/Gui/Topics.py index 251403d1c..5ba922b6d 100644 --- a/Mailman/Gui/Topics.py +++ b/Mailman/Gui/Topics.py @@ -24,7 +24,9 @@ class Topics: def GetConfigCategory(self): return 'topics', _('Topic filters') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'topics': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH return [ diff --git a/Mailman/Gui/Usenet.py b/Mailman/Gui/Usenet.py index 3f14c4fa5..f1554cc36 100644 --- a/Mailman/Gui/Usenet.py +++ b/Mailman/Gui/Usenet.py @@ -23,7 +23,9 @@ class Usenet: def GetConfigCategory(self): return 'gateway', _('Mail<->News gateways') - def GetConfigInfo(self, mlist): + def GetConfigInfo(self, mlist, category, subcat=None): + if category <> 'gateway': + return None WIDTH = mm_cfg.TEXTFIELDWIDTH return [ |
