[Mailman-Users] show_qfiles error
Axel Beckert - ecos gmbh
beckert at ecos.de
Mon Mar 6 22:53:20 CET 2006
Hi!
I know, this reply comes about one year too late ;-) but nevertheless,
here's the solution (and a bug report):
> When I try to view the qfiles in my in out or retry directories I get an
> error like the following:
>
> /usr/local/mailman/bin/show_qfiles qfiles/in/*.pck
> ====================> qfiles/in/1109557589.84778+7a750d59fd76a54b51168a615ef23e74f4088be9.pck
> Traceback (most recent call last):
> File "/usr/local/mailman/bin/show_qfiles", line 74, in ?
> main()
> File "/usr/local/mailman/bin/show_qfiles", line 67, in main
> sys.stdout.write(msg.as_string())
> AttributeError: 'str' object has no attribute 'as_string'
Edit show_qfiles, remove the ".as_string()" after "msg" just leaving
the line
sys.stdout.write(msg)
Patch:
--- show_qfiles-2.1.7.orig 2006-03-06 22:38:46.000000000 +0100
+++ show_qfiles-2.1.7 2006-03-06 22:40:27.000000000 +0100
@@ -64,7 +64,7 @@
fp = open(filename)
if filename.endswith(".pck"):
msg = load(fp)
- sys.stdout.write(msg.as_string())
+ sys.stdout.write(msg)
else:
sys.stdout.write(fp.read())
This bug is still in Mailman 2.1.7. I initially had this problem with
Mailman 2.1.5 on SuSE Linux 9.3 with Python 2.4, but also could
reproduce it with 2.1.7 on SuSE Linux 10.0 with Python 2.4.1.
Filed a bug report:
https://sourceforge.net/tracker/?func=detail&aid=1444447&group_id=103&atid=100103
Anyone can explain, why a string should be converted to a string?
Kind regards, Axel Beckert
--
-------------------------------------------------------------
Axel Beckert ecos electronic communication services gmbh
it security solutions * web applications with apache and perl
Mail: Tulpenstrasse 5 D-55276 Dienheim near Mainz
E-Mail: beckert at ecos.de Voice: +49 6133 939-220
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
-------------------------------------------------------------
** Virus checked by BB-5000 Mailfilter **
More information about the Mailman-Users
mailing list