------------------------------------------------------------
revno: 1171
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Sun 2009-02-08 16:36:11 -0800
message:
  Changed Gui/Topics.py to validate regexps in VERBOSE mode.  Bug #327008.
modified:
  Mailman/Gui/Topics.py
  NEWS

=== modified file 'Mailman/Gui/Topics.py'
--- Mailman/Gui/Topics.py       2009-01-11 16:06:13 +0000
+++ Mailman/Gui/Topics.py       2009-02-09 00:36:11 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2009 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
@@ -126,7 +126,8 @@
             # Make sure the pattern was a legal regular expression
             name = Utils.websafe(name)
             try:
-                re.compile(pattern)
+                # Tagger compiles in verbose mode so we do too.
+                re.compile(pattern, re.VERBOSE)
             except (re.error, TypeError):
                 safepattern = Utils.websafe(pattern)
                 doc.addError(_("""The topic pattern '%(safepattern)s' is not a

=== modified file 'NEWS'
--- NEWS        2009-02-06 20:05:16 +0000
+++ NEWS        2009-02-09 00:36:11 +0000
@@ -85,6 +85,8 @@
     - Fixed a bug in admindb.py in the implementation of replacing "No Reason
       Given" with the default rejection reason.  Bug #325016.
 
+    - Changed Gui/Topics.py to validate regexps in VERBOSE mode.  Bug #327008.
+
   Miscellaneous
 
     - Added Lindsay Haisley's courier_to_mailman.py to the contrib directory.



--
Stable, maintained release series
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/stable.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to