diff options
| author | bwarsaw | 2002-02-27 00:06:06 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-02-27 00:06:06 +0000 |
| commit | 28bfdaeacdfb79a062ab5979a7180702d03d8709 (patch) | |
| tree | 3312eb3b6df23c972ebe22837985b838e351ae16 | |
| parent | 72eeee3484cd36112702d4a4ff360413bbb37799 (diff) | |
| download | mailman-28bfdaeacdfb79a062ab5979a7180702d03d8709.tar.gz mailman-28bfdaeacdfb79a062ab5979a7180702d03d8709.tar.zst mailman-28bfdaeacdfb79a062ab5979a7180702d03d8709.zip | |
| -rw-r--r-- | Mailman/Gui/General.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py index 1b3d3f07a..1d01d0e6b 100644 --- a/Mailman/Gui/General.py +++ b/Mailman/Gui/General.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001 by the Free Software Foundation, Inc. +# Copyright (C) 2001,2002 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 @@ -20,10 +20,11 @@ from Mailman import mm_cfg from Mailman import Utils from Mailman.i18n import _ +from Mailman.Gui.GUIBase import GUIBase -class General: +class General(GUIBase): def GetConfigCategory(self): return 'general', _('General Options') @@ -346,3 +347,14 @@ class General: ) return rtn + + def _setValue(self, mlist, property, val, doc): + if property == 'real_name' and \ + val.lower() <> mlist.internal_name().lower(): + # These values can't differ by other than case + doc.addError(_("""<p><b>real_name</b> attribute not + changed! It must differ from the list's name by case + only.<p>"""), + tag=_('Error: ')) + else: + GUIBase._setValue(self, mlist, property, val, doc) |
