summaryrefslogtreecommitdiff
path: root/Mailman/Gui/Language.py
diff options
context:
space:
mode:
authorbwarsaw2001-10-15 21:58:45 +0000
committerbwarsaw2001-10-15 21:58:45 +0000
commitbb7f1d80d3ec85df102227334034e9610c560fa0 (patch)
treefb7970b95739b47d6f1fd1a9f9aab0a5dee464f3 /Mailman/Gui/Language.py
parent04713934dfb9421502b77c093e4de626ad3444bc (diff)
downloadmailman-bb7f1d80d3ec85df102227334034e9610c560fa0.tar.gz
mailman-bb7f1d80d3ec85df102227334034e9610c560fa0.tar.zst
mailman-bb7f1d80d3ec85df102227334034e9610c560fa0.zip
GetConfigInfo(): Update to the new signature, accepting category and
subcat argument. If the category doesn't apply to this gui component, None is returned, otherwise the config list is returned.
Diffstat (limited to 'Mailman/Gui/Language.py')
-rw-r--r--Mailman/Gui/Language.py4
1 files changed, 3 insertions, 1 deletions
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]