------------------------------------------------------------ revno: 1451 fixes bug: https://launchpad.net/bugs/1295875 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Fri 2014-03-21 20:47:45 -0700 message: - Added the list name to the vette log "held message approved" entry. (LP: 1295875) - Added the CGI module name to various "No such list" error log entries. (LP: 1295875) - Modified contrib/mmdsr to report module name if present in "No such list error log entries. modified: Mailman/Cgi/admin.py Mailman/Cgi/admindb.py Mailman/Cgi/confirm.py Mailman/Cgi/edithtml.py Mailman/Cgi/listinfo.py Mailman/Cgi/options.py Mailman/Cgi/private.py Mailman/Cgi/rmlist.py Mailman/Cgi/roster.py Mailman/Cgi/subscribe.py Mailman/ListAdmin.py NEWS contrib/mmdsr
-- lp:mailman/2.1 https://code.launchpad.net/~mailman-coders/mailman/2.1 Your team Mailman Checkins is subscribed to branch lp:mailman/2.1. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Cgi/admin.py' --- Mailman/Cgi/admin.py 2012-10-31 00:59:16 +0000 +++ Mailman/Cgi/admin.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -77,8 +77,8 @@ # Send this with a 404 status. print 'Status: 404 Not Found' admin_overview(_('No such list <em>%(safelistname)s</em>')) - syslog('error', 'admin.py access for non-existent list: %s', - listname) + syslog('error', 'admin: No such list "%s": %s\n', + listname, e) return # Now that we know what list has been requested, all subsequent admin # pages are shown in that list's preferred language. === modified file 'Mailman/Cgi/admindb.py' --- Mailman/Cgi/admindb.py 2013-07-19 21:33:57 +0000 +++ Mailman/Cgi/admindb.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -114,7 +114,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' handle_no_list(_('No such list <em>%(safelistname)s</em>')) - syslog('error', 'No such list "%s": %s\n', listname, e) + syslog('error', 'admindb: No such list "%s": %s\n', listname, e) return # Now that we know which list to use, set the system's language to it. === modified file 'Mailman/Cgi/confirm.py' --- Mailman/Cgi/confirm.py 2014-02-07 23:34:29 +0000 +++ Mailman/Cgi/confirm.py 2014-03-22 03:47:45 +0000 @@ -64,7 +64,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s', listname, e) + syslog('error', 'confirm: No such list "%s": %s', listname, e) return # Set the language for the list === modified file 'Mailman/Cgi/edithtml.py' --- Mailman/Cgi/edithtml.py 2011-11-12 23:52:27 +0000 +++ Mailman/Cgi/edithtml.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -72,7 +72,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s', listname, e) + syslog('error', 'edithtml: No such list "%s": %s', listname, e) return # Now that we have a valid list, set the language to its default === modified file 'Mailman/Cgi/listinfo.py' --- Mailman/Cgi/listinfo.py 2012-11-24 22:44:15 +0000 +++ Mailman/Cgi/listinfo.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -53,7 +53,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' listinfo_overview(_('No such list <em>%(safelistname)s</em>')) - syslog('error', 'No such list "%s": %s', listname, e) + syslog('error', 'listinfo: No such list "%s": %s', listname, e) return # See if the user want to see this page in other language === modified file 'Mailman/Cgi/options.py' --- Mailman/Cgi/options.py 2011-06-07 22:41:51 +0000 +++ Mailman/Cgi/options.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -81,7 +81,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s\n', listname, e) + syslog('error', 'options: No such list "%s": %s\n', listname, e) return # The total contents of the user's response === modified file 'Mailman/Cgi/private.py' --- Mailman/Cgi/private.py 2012-06-20 23:32:30 +0000 +++ Mailman/Cgi/private.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -111,7 +111,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s\n', listname, e) + syslog('error', 'private: No such list "%s": %s\n', listname, e) return i18n.set_language(mlist.preferred_language) === modified file 'Mailman/Cgi/rmlist.py' --- Mailman/Cgi/rmlist.py 2010-09-10 22:17:01 +0000 +++ Mailman/Cgi/rmlist.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2010 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2014 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 @@ -71,7 +71,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s\n', listname, e) + syslog('error', 'rmlist: No such list "%s": %s\n', listname, e) return # Now that we have a valid mailing list, set the language === modified file 'Mailman/Cgi/roster.py' --- Mailman/Cgi/roster.py 2011-05-10 01:34:07 +0000 +++ Mailman/Cgi/roster.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -57,7 +57,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' error_page(_('No such list <em>%(safelistname)s</em>')) - syslog('error', 'roster: no such list "%s": %s', listname, e) + syslog('error', 'roster: No such list "%s": %s', listname, e) return cgidata = cgi.FieldStorage() === modified file 'Mailman/Cgi/subscribe.py' --- Mailman/Cgi/subscribe.py 2012-12-15 04:37:33 +0000 +++ Mailman/Cgi/subscribe.py 2014-03-22 03:47:45 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2014 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 @@ -64,7 +64,7 @@ # Send this with a 404 status. print 'Status: 404 Not Found' print doc.Format() - syslog('error', 'No such list "%s": %s\n', listname, e) + syslog('error', 'subscribe: No such list "%s": %s\n', listname, e) return # See if the form data has a preferred language set, in which case, use it === modified file 'Mailman/ListAdmin.py' --- Mailman/ListAdmin.py 2014-02-20 15:33:52 +0000 +++ Mailman/ListAdmin.py 2014-03-22 03:47:45 +0000 @@ -292,7 +292,8 @@ # message directly here can lead to a huge delay in web # turnaround. Log the moderation and add a header. msg['X-Mailman-Approved-At'] = email.Utils.formatdate(localtime=1) - syslog('vette', 'held message approved, message-id: %s', + syslog('vette', '%s: held message approved, message-id: %s', + self.internal_name(), msg.get('message-id', 'n/a')) # Stick the message back in the incoming queue for further # processing. === modified file 'NEWS' --- NEWS 2014-03-11 20:56:17 +0000 +++ NEWS 2014-03-22 03:47:45 +0000 @@ -14,6 +14,15 @@ Bug Fixes and other patches + - Added the list name to the vette log "held message approved" entry. + (LP: 1295875) + + - Added the CGI module name to various "No such list" error log entries. + (LP: 1295875) + + - Modified contrib/mmdsr to report module name if present in "No such list + error log entries. + - Fixed a NameError exception in cron/nightly_gzip when it tries to print the usage message. (LP: #1291038) === modified file 'contrib/mmdsr' --- contrib/mmdsr 2009-11-27 20:17:20 +0000 +++ contrib/mmdsr 2014-03-22 03:47:45 +0000 @@ -176,6 +176,11 @@ # 0.0.21 Update by Mark Sapiro <m...@msapiro.net> # Updated on: Sun Sep 27 12:45:44 PDT 2009 # Refactored to use mktemp to create temp files +# +# 0.0.22 Update by Mark Sapiro <m...@msapiro.net> +# Updated on: Fri Mar 21 19:47:19 PDT 2014 +# Updated the "No such list" error report to include the newly +# added name of the CGI module. ############################################################################### # Set up locations of standard commands, directories, etc.... @@ -426,7 +431,7 @@ echo "" >> $TMP echo "No Such List:" >> $TMP echo "------------------------------" >> $TMP - $GREP 'No such list' $TMPLOG | $SED -e 's/^.* "//' -e 's/".*$//' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + $GREP 'No such list' $TMPLOG | $SED -e 's/^[^)]*) //' -e 's/No such list "//' -e 's/".*$//' | $SORT | $UNIQ -c | $SORT -nr >> $TMP CNT=`$GREP -i 'shunting' $TMPLOG | $WC -l` if [ "${CNT}x" != "x" ] ; then
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org