diff options
Diffstat (limited to 'Mailman/Gui/GUIBase.py')
-rw-r--r-- | Mailman/Gui/GUIBase.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Mailman/Gui/GUIBase.py b/Mailman/Gui/GUIBase.py index 5f0f2c1e..b27542ed 100644 --- a/Mailman/Gui/GUIBase.py +++ b/Mailman/Gui/GUIBase.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2004 by the Free Software Foundation, Inc. +# Copyright (C) 2002-2007 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. """Base class for all web GUI components.""" @@ -77,6 +78,10 @@ class GUIBase: re.compile(addr) except re.error: raise ValueError + elif wtype == mm_cfg.EmailListEx and addr.startswith('@'): + # XXX Needs to be reviewed for list@domain names. + # check for existence of list? + pass else: raise addrs.append(addr) @@ -122,10 +127,6 @@ class GUIBase: # Validate all the attributes for this category pass - def _escape(self, property, value): - value = value.replace('<', '<') - return value - def handleForm(self, mlist, category, subcat, cgidata, doc): for item in self.GetConfigInfo(mlist, category, subcat): # Skip descriptions and legacy non-attributes @@ -144,10 +145,9 @@ class GUIBase: elif not cgidata.has_key(property): continue elif isinstance(cgidata[property], ListType): - val = [self._escape(property, x.value) - for x in cgidata[property]] + val = [x.value for x in cgidata[property]] else: - val = self._escape(property, cgidata[property].value) + val = cgidata[property].value # Coerce the value to the expected type, raising exceptions if the # value is invalid. try: |