diff options
author | Mark Sapiro <msapiro@value.net> | 2007-11-18 12:01:26 -0800 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2007-11-18 12:01:26 -0800 |
commit | fa0b0e8852a31d6aa59651c7c92460c607a7337e (patch) | |
tree | 1324b000c9ced25f59eb07026c7b34934efac724 /Mailman/Gui/GUIBase.py | |
parent | f383c36db54e30c67f9bf22fc1498e9fed7b65d1 (diff) | |
download | mailman2-fa0b0e8852a31d6aa59651c7c92460c607a7337e.tar.gz mailman2-fa0b0e8852a31d6aa59651c7c92460c607a7337e.tar.xz mailman2-fa0b0e8852a31d6aa59651c7c92460c607a7337e.zip |
Gui/GuiBase.py - Deleted the _escape() method - not needed since 2.1.9
Gui/GuiBase.py
Gui/Privacy.py
Handlers/Moderate.py - Patched with a slightly modified version of sf patch
1220144 - allow specifying another list in
accept_these_nonmembers.
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: |