------------------------------------------------------------
revno: 1124
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Tue 2010-07-27 07:40:57 -0700
message:
Changed fix_url to lock the list if not locked. Bug #610364.
modified:
NEWS
bin/fix_url.py
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2010-07-24 15:57:45 +0000
+++ NEWS 2010-07-27 14:40:57 +0000
@@ -112,6 +112,8 @@
Bug Fixes and other patches
+ - Changed fix_url to lock the list if not locked. Bug #610364.
+
- Made a minor change to the English subscribeack.txt (welcome message)
template to emphasize that a password is only required to unsubscribe
*without confirmation*.
=== modified file 'bin/fix_url.py'
--- bin/fix_url.py 2005-08-27 01:40:17 +0000
+++ bin/fix_url.py 2010-07-27 14:40:57 +0000
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2010 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
@@ -69,6 +69,11 @@
elif opt in ('-v', '--verbose'):
verbose = 1
+ # Make sure list is locked.
+ if not mlist.Locked():
+ if verbose:
+ print _('Locking list')
+ mlist.Lock()
if urlhost:
web_page_url = mm_cfg.DEFAULT_URL_PATTERN % urlhost
mailhost = mm_cfg.VIRTUAL_HOSTS.get(urlhost.lower(), urlhost)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org