Re: [Mailman-Users] Help with an error

2009-12-17 Thread Mark Sapiro
Paul Kleeberg wrote:

>Now that I know what a nightmare it is for me to upgrade Apple's installation 
>of Mailman on a 10.5.8 server, I am not eager to upgrade my 10.6.2 server to 
>which this message applies.  I would like to apply the patch that Mark sent to 
>me but I see from faq 4.40 that I will need to go through the same process of 
>'./configure' and 'make install' as I would with an upgrade.  Are there any 
>other options?


FAQ 4.40 describes a general process for applying patches that could
patch files that are input to configure. For the admindb.py patch I
gave you, you don't have to do this. Just apply the patch to the
installed Mailman/Cgi/admindb.py file. Since it's a CGI, you don't
even have to restart Mailman.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Help with an error

2009-12-17 Thread Paul Kleeberg
Now that I know what a nightmare it is for me to upgrade Apple's installation 
of Mailman on a 10.5.8 server, I am not eager to upgrade my 10.6.2 server to 
which this message applies.  I would like to apply the patch that Mark sent to 
me but I see from faq 4.40 that I will need to go through the same process of 
'./configure' and 'make install' as I would with an upgrade.  Are there any 
other options?

I would like to leave it alone, but denying a subscription request fails and i 
keep getting reminders each morning of the pending request.

Are there other options to deny the request?

Paul
--
Paul Kleeberg
p...@fpen.org


On Dec 13, 2009, at 10:11 AM, Mark Sapiro wrote:

> Paul Kleeberg wrote:
>> 
>> In attending to a subscription request to a sunsetted list (the request came 
>> before the migration) via the web interface, I received an error.  Here is 
>> the mailman error log (I have modified e-mail addresses and the domain name):
>> 
>> Dec 13 08:35:55 2009 admin(81221): 
>>  
>> admin(81221): [- Mailman Version: 2.1.12rc1 -] 
>> admin(81221): [- Traceback --] 
>> admin(81221): Traceback (most recent call last):
>> admin(81221):   File "/usr/share/mailman/scripts/driver", line 112, in 
>> run_main
>> admin(81221): main()
>> admin(81221):   File 
>> "/BinaryCache/mailman/mailman-132~28/Root/usr/share/mailman/Mailman/Cgi/admindb.py",
>>  line 164, in main
>> admin(81221):   File 
>> "/BinaryCache/mailman/mailman-132~28/Root/usr/share/mailman/Mailman/Cgi/admindb.py",
>>  line 773, in process_form
>> admin(81221): AttributeError: 'str' object has no attribute 'get'
> 
> 
> This is a bug in 2.1.12rc1. Upgrade to 2.1.12 or install the attached
> admindb.patch.txt.
> 
> -- 
> Mark Sapiro The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
> 
> 

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Help with an error

2009-12-13 Thread Mark Sapiro
Paul Kleeberg wrote:
>
>In attending to a subscription request to a sunsetted list (the request came 
>before the migration) via the web interface, I received an error.  Here is the 
>mailman error log (I have modified e-mail addresses and the domain name):
>
>Dec 13 08:35:55 2009 admin(81221): 
> 
>admin(81221): [- Mailman Version: 2.1.12rc1 -] 
>admin(81221): [- Traceback --] 
>admin(81221): Traceback (most recent call last):
>admin(81221):   File "/usr/share/mailman/scripts/driver", line 112, in run_main
>admin(81221): main()
>admin(81221):   File 
>"/BinaryCache/mailman/mailman-132~28/Root/usr/share/mailman/Mailman/Cgi/admindb.py",
> line 164, in main
>admin(81221):   File 
>"/BinaryCache/mailman/mailman-132~28/Root/usr/share/mailman/Mailman/Cgi/admindb.py",
> line 773, in process_form
>admin(81221): AttributeError: 'str' object has no attribute 'get'


This is a bug in 2.1.12rc1. Upgrade to 2.1.12 or install the attached
admindb.patch.txt.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

=== modified file 'Mailman/Cgi/admindb.py'
--- Mailman/Cgi/admindb.py  2009-01-03 02:40:28 +
+++ Mailman/Cgi/admindb.py  2009-02-03 23:47:36 +
@@ -34,6 +34,7 @@
 from Mailman import Message
 from Mailman import i18n
 from Mailman.Handlers.Moderate import ModeratedMemberPost
+from Mailman.ListAdmin import HELDMSG
 from Mailman.ListAdmin import readMessage
 from Mailman.Cgi import Auth
 from Mailman.htmlformat import *
@@ -769,8 +770,12 @@
 forwardaddrkey = 'forward-addr-%d' % request_id
 bankey = 'ban-%d' % request_id
 # Defaults
-msgdata = mlist.GetRecord(request_id)[5]
-comment = msgdata.get('rejection_notice', _('[No explanation given]'))
+if mlist.GetRecordType(request_id) == HELDMSG:
+msgdata = mlist.GetRecord(request_id)[5]
+comment = msgdata.get('rejection_notice',
+  _('[No explanation given]'))
+else:
+comment = _('[No explanation given]')
 preserve = 0
 forward = 0
 forwardaddr = ''

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org