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 m...@msapiro.netThe highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan
 
 admindb.patch.txt

--
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 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 m...@msapiro.netThe 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


[Mailman-Users] Help with an error

2009-12-13 Thread Paul Kleeberg
Migrated mailman from one box to another with a slight name change on the 
virtual hosts.  Ran:

3) bin/withlist -l -r fix_url listname -u www.domain.tld to fix the web 
page URLs
4) 'bin/arch --wipe'
5) 'bin/genaliases' to create the alias file.

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'
admin(81221): [- Python Information -] 
admin(81221): sys.version =   2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] 
admin(81221): sys.executable  =   /usr/bin/python 
admin(81221): sys.prefix  =   
/System/Library/Frameworks/Python.framework/Versions/2.6 
admin(81221): sys.exec_prefix =   
/System/Library/Frameworks/Python.framework/Versions/2.6 
admin(81221): sys.path=   
/System/Library/Frameworks/Python.framework/Versions/2.6 
admin(81221): sys.platform=   darwin 
admin(81221): [- Environment Variables -] 
admin(81221):   HTTP_REFERER: http://www.mydomain.com/mailman/admindb/cds-mneug 
admin(81221):   VERSIONER_PYTHON_PREFER_32_BIT: no 
admin(81221):   SERVER_SOFTWARE: Apache/2.2.13 (Unix) mod_ssl/2.2.13 
OpenSSL/0.9.8k PHP/5.3.0 
admin(81221):   SCRIPT_NAME: /mailman/admindb 
admin(81221):   SERVER_SIGNATURE: addressApache/2.2.13 (Unix) mod_ssl/2.2.13 
OpenSSL/0.9.8k PHP/5.3.0 Server at www.mydomain.com Port 80/address
admin(81221): 
admin(81221):   REQUEST_METHOD: POST 
admin(81221):   PATH_INFO: /cds-mneug 
admin(81221):   HTTP_ORIGIN: http://www.mydomain.com 
admin(81221):   SERVER_PROTOCOL: HTTP/1.1 
admin(81221):   QUERY_STRING:  
admin(81221):   CONTENT_LENGTH: 68 
admin(81221):   HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 
10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 
Safari/531.21.10 
admin(81221):   HTTP_CONNECTION: keep-alive 
admin(81221):   HTTP_COOKIE: 
cds-mneug+admin=28020069abfb244b73280034333533356532663261346266343665306538363832656532373233366562336164363434613735;
 
himss-cpoe+admin=280200693ffb244b73280062393066626336636632356230643436303966616139343438303762323736373235643530616237;
 __utma=235507584.16807.1171413544.1260036906.1260212869.32; 
__utmz=235507584.1258473236.29.5.utmcsr=myhq.com|utmccn=(referral)|utmcmd=referral|utmcct=/
 
admin(81221):   SERVER_NAME: www.mydomain.com 
admin(81221):   REMOTE_ADDR: 192.168.1.7 
admin(81221):   PATH_TRANSLATED: /Library/WebServer/mydomain/cds-mneug 
admin(81221):   SERVER_PORT: 80 
admin(81221):   SERVER_ADDR: 192.168.1.1 
admin(81221):   DOCUMENT_ROOT: /Library/WebServer/mydomain 
admin(81221):   HTTP_X_COLLABORATION_WIKIS: Enabled 
admin(81221):   PYTHONPATH: /usr/share/mailman 
admin(81221):   SCRIPT_FILENAME: /usr/share/mailman/cgi-bin/admindb 
admin(81221):   SERVER_ADMIN: ad...@mydomain.com 
admin(81221):   SCRIPT_URI: http://www.mydomain.com/mailman/admindb/cds-mneug 
admin(81221):   HTTP_HOST: www.mydomain.com 
admin(81221):   SCRIPT_URL: /mailman/admindb/cds-mneug 
admin(81221):   REQUEST_URI: /mailman/admindb/cds-mneug 
admin(81221):   HTTP_ACCEPT: 
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 
admin(81221):   GATEWAY_INTERFACE: CGI/1.1 
admin(81221):   REMOTE_PORT: 54251 
admin(81221):   HTTP_ACCEPT_LANGUAGE: en-us 
admin(81221):   HTTP_X_COLLABORATION_BLOGS: Enabled 
admin(81221):   __CF_USER_TEXT_ENCODING: 0x46:0:0 
admin(81221):   VERSIONER_PYTHON_VERSION: 2.6 
admin(81221):   CONTENT_TYPE: application/x-www-form-urlencoded 
admin(81221):   HTTP_ACCEPT_ENCODING: gzip, deflate 

I am wondering, was this error due to the migration and I do not need to do 
anything, or is there something else I need to do?

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


--
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 m...@msapiro.netThe 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

[Mailman-Users] Help with mailpasswds error in CRON job

2003-06-04 Thread NW7US
I have not had any reply to this.  I have searched the online archives of this 
list, and found nothing helpful.

If someone could point me in the direction of an answer, I would appreciate it:

I am tring to resolve the following error.  I cannot seem to find where I have 
an error.  The Defaults.py file has the DEFAULT_HOST and variations set to 
hfradio.org - so why is host_name causing an error?  All other functions seem to 
work correctly (I do have several lists on two domains).  It is only this 
function, mailing out the passwords, that gives an error:

Traceback (most recent call last):
  File ./mailpasswds, line 218, in ?
main()
  File ./mailpasswds, line 210, in main
msg.send(sitelist, **{'errorsto': sitebounce,
  File /home/mailman/Mailman/Message.py, line 221, in send
self['Message-ID'] = Utils.unique_message_id(mlist)
  File /home/mailman/Mailman/Utils.py, line 634, in unique_message_id
msgid = '[EMAIL PROTECTED]' % (
  File /home/mailman/Mailman/MailList.py, line 130, in __getattr__
raise AttributeError, name
AttributeError: host_name

Thanks,

73 de Tomas, NW7US (AAR0JA/AAM0EWA)
--
: Propagation Editor, CQ/PopComm Magazines : http://hfradio.org/ :
: Brinnon, Washington 122.93W 47.67N : CW SSB DIGITAL DX-Hunting :
: A creator of solutions -- http://accessnow.com/ -- Perl Rules! :
: Washington State MARS Emergency Operations Officer - (AAM0EWA) :
: WA State Army MARS Webmaster  for  http://wa.mars.hfradio.org/ :
: 10x56526, FISTS 7055, FISTS NW 57, A.R. Lighthouse Society 144 :




--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org