[prev in list] [next in list] [prev in thread] [next in thread]
List: mailman-cvs
Subject: [Mailman-checkins] SF.net SVN: mailman: [8187]
From: bwarsaw () users ! sourceforge ! net
Date: 2007-04-05 18:37:09
Message-ID: E1HZWpZ-0007uU-UK () sc8-pr-svn1 ! sourceforge ! net
[Download RAW message or body]
Revision: 8187
http://svn.sourceforge.net/mailman/?rev=8187&view=rev
Author: bwarsaw
Date: 2007-04-05 11:37:08 -0700 (Thu, 05 Apr 2007)
Log Message:
-----------
Fix a very old bug in withlist which prevented -r from working with package
paths more deeply nested than 1 level. IOW, -r package.package.module.func
now works as intended.
Modified Paths:
--------------
branches/Release_2_1-maint/mailman/NEWS
branches/Release_2_1-maint/mailman/bin/withlist
Modified: branches/Release_2_1-maint/mailman/NEWS
===================================================================
--- branches/Release_2_1-maint/mailman/NEWS 2007-04-03 02:03:18 UTC (rev 8186)
+++ branches/Release_2_1-maint/mailman/NEWS 2007-04-05 18:37:08 UTC (rev 8187)
@@ -1,5 +1,5 @@
Mailman - The GNU Mailing List Management System
-Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Here is a history of user visible changes to Mailman.
@@ -18,6 +18,9 @@
and BYUSER on a straight change of address (1642388). Also fixed a
bug that could result in a member key with uppercase in the domain.
+ - Fixed bin/withlist so that -r can take a full package path to a
+ callable.
+
2.1.9 (12-Sep-2006)
Security
Modified: branches/Release_2_1-maint/mailman/bin/withlist
===================================================================
--- branches/Release_2_1-maint/mailman/bin/withlist 2007-04-03 02:03:18 UTC (rev \
8186)
+++ branches/Release_2_1-maint/mailman/bin/withlist 2007-04-05 18:37:08 UTC (rev \
8187) @@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-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
@@ -14,7 +14,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.
"""General framework for interacting with a mailing list object.
@@ -254,7 +255,7 @@
# try to import the module for the callable
func = None
if run:
- i = run.find('.')
+ i = run.rfind('.')
if i < 0:
module = run
callable = run
@@ -263,7 +264,8 @@
callable = run[i+1:]
if VERBOSE:
print >> sys.stderr, _('Importing %(module)s...')
- mod = __import__(module)
+ __import__(module)
+ mod = sys.modules[module]
if VERBOSE:
print >> sys.stderr, _('Running %(module)s.%(callable)s()...')
func = getattr(mod, callable)
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site. _______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/mailman-cvs%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic