[ mailman-Bugs-2027226 ] incompatibility preferred_language - admin_notify_mchanges

SourceForge.net noreply at sourceforge.net
Fri Jul 25 01:12:37 CEST 2008


Bugs item #2027226, was opened at 2008-07-24 14:45
Message generated for change (Comment added) made by msapiro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=2027226&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: (un)subscribing
Group: 2.1 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Primitivo Liberto (primitivo)
>Assigned to: Mark Sapiro (msapiro)
Summary: incompatibility preferred_language - admin_notify_mchanges

Initial Comment:
unsubscription impossible in webadmin when preferred_language is Catalan and admin_notify_mchanges is Yes

Hi, I have detect that when "admin_notify_mchanges: Yes" and "preferred_language: Catalan" not is possible unsubscription of any e-mail address in web admin. Web shows "sorry, it's a bug" message. In error log I found this:

Jul 24 12:49:17 2008 admin(22497): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
admin(22497): [----- Mailman Version: 2.1.11 -----] 
admin(22497): [----- Traceback ------] 
admin(22497): Traceback (most recent call last):
admin(22497):   File "/usr/local/bin/mailman/scripts/driver", line 101, in run_main
admin(22497):     main()
admin(22497):   File "/usr/local/bin/mailman/Mailman/Cgi/admin.py", line 174, in main
admin(22497):     change_options(mlist, category, subcat, cgidata, doc)
admin(22497):   File "/usr/local/bin/mailman/Mailman/Cgi/admin.py", line 1434, in change_options
admin(22497):     mlist.ApprovedDeleteMember(user, whence='member mgt page')
admin(22497):   File "/usr/local/bin/mailman/Mailman/MailList.py", line 1030, in ApprovedDeleteMember
admin(22497):     subject = _('%(realname)s unsubscribe notification')
admin(22497):   File "/usr/local/bin/mailman/Mailman/i18n.py", line 90, in _
admin(22497):     return tns % dict
admin(22497): ValueError: incomplete format
admin(22497): [----- Python Information -----] 
admin(22497): sys.version     =   2.4.1 (#2, Oct 18 2006, 20:58:01) 
[GCC 3.3.5 (Debian 1:3.3.5-13)] 
admin(22497): sys.executable  =   /usr/bin/python2.4 
admin(22497): sys.prefix      =   /usr 
admin(22497): sys.exec_prefix =   /usr 
admin(22497): sys.path        =   /usr 
admin(22497): sys.platform    =   linux2 
admin(22497): [----- Environment Variables -----] 
admin(22497): 	HTTP_REFERER: http://listas.xxxx.org/cgi-bin/mailman/admin/pruebacat/members 
admin(22497): 	SERVER_SOFTWARE: Apache/1.3.33 Ben-SSL/1.55 (Debian GNU/Linux) 
admin(22497): 	SCRIPT_NAME: /cgi-bin/mailman/admin 
admin(22497): 	SERVER_SIGNATURE:  
admin(22497): 	REQUEST_METHOD: POST 
admin(22497): 	HTTP_KEEP_ALIVE: 300 
admin(22497): 	SERVER_PROTOCOL: HTTP/1.1 
admin(22497): 	QUERY_STRING:  
admin(22497): 	CONTENT_LENGTH: 1087 
admin(22497): 	HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
admin(22497): 	HTTP_USER_AGENT: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9) Gecko/2008061015 Firefox/3.0 
admin(22497): 	HTTP_CONNECTION: keep-alive 
admin(22497): 	HTTP_COOKIE: pruebacat+admin=280200000069285e8848732800000065623439393336623830333932393432376132356563383761636663326338326230376362393930 
admin(22497): 	SERVER_NAME: listas.xxxx.org 
admin(22497): 	REMOTE_ADDR: xx.xx.xx.xx 
admin(22497): 	PATH_TRANSLATED: /var/www/pruebacat/members 
admin(22497): 	SERVER_PORT: 80 
admin(22497): 	SERVER_ADDR: xx.xx.xx.xx 
admin(22497): 	DOCUMENT_ROOT: /var/www 
admin(22497): 	PYTHONPATH: /usr/local/bin/mailman 
admin(22497): 	SCRIPT_FILENAME: /var/cgi-bin/mailman/admin 
admin(22497): 	SERVER_ADMIN: webmaster at xxxx.org 
admin(22497): 	HTTP_HOST: listas.xxxx.org 
admin(22497): 	REQUEST_URI: /cgi-bin/mailman/admin/pruebacat/members 
admin(22497): 	HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
admin(22497): 	GATEWAY_INTERFACE: CGI/1.1 
admin(22497): 	REMOTE_PORT: 35412 
admin(22497): 	HTTP_ACCEPT_LANGUAGE: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3 
admin(22497): 	CONTENT_TYPE: multipart/form-data; boundary=---------------------------74976781710522813451157061205 
admin(22497): 	HTTP_ACCEPT_ENCODING: gzip,deflate 
admin(22497): 	PATH_INFO: /pruebacat/members 

A hack for fast and dirty solution is comment out two lines in $PREFIX/messages/ca/LC_MESSAGES/mailman.po (#7510 and #7511)

#: Mailman/MailList.py:1024
#msgid "%(realname)s unsubscribe notification"
#msgstr "Notificaci de la cancellaci de la subscripci a %(realname)"

and create new mailman.mo with msgfmt.py

thanks in advance


----------------------------------------------------------------------

>Comment By: Mark Sapiro (msapiro)
Date: 2008-07-24 16:12

Message:
Logged In: YES 
user_id=1123998
Originator: NO

The correct fix is to change %(realname) to %(realname)s in the msgstr.

There were several similar errors in the Catalan message catalog and
templates found by running Mailman's bin/transcheck. These errors have all
been corrected in the Bazaar 2.1 and 2.2 branches on Launchpad.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=2027226&group_id=103


More information about the Mailman-coders mailing list