
I was the puzzled receiver of these words this morning:
Traceback (most recent call last): File "/home/mailman/cron/checkdbs", line 136, in ? main() File "/home/mailman/cron/checkdbs", line 80, in main text += '\n' + pending_requests(mlist) File "/home/mailman/cron/checkdbs", line 123, in pending_requests text = NL.join(pending) UnicodeError: ASCII decoding error: ordinal not in range(128)
Anyone else seen this and know how to fix it? Couldn't find anything about this in the SF bug tracker...
I'm using the Release_2_1-maint CVS branch.
-Daniel

Hi, Try this patch. It's a coincidence that I am working on it. Index: checkdbs =================================================================== RCS file: /cvsroot/mailman/mailman/cron/checkdbs,v retrieving revision 2.17 diff -u -r2.17 checkdbs --- checkdbs 28 Oct 2002 03:43:42 -0000 2.17 +++ checkdbs 6 Feb 2003 10:21:27 -0000 @@ -92,6 +92,7 @@ def pending_requests(mlist): + lcset = Utils.GetCharSet(mlist.preferred_language) # Must return a byte string pending = [] first = 1 @@ -101,6 +102,8 @@ first = 0 when, addr, fullname, passwd, digest, lang = mlist.GetRecord(id) if fullname: + if _isunicode(fullname): + fullname = fullname.encode(lcset, 'replace') fullname = ' (%s)' % fullname pending.append(' %s%s %s' % (addr, fullname, time.ctime(when))) first = 1 ======= Daniel Buchmann wrote:
I was the puzzled receiver of these words this morning:
Traceback (most recent call last): File "/home/mailman/cron/checkdbs", line 136, in ? main() File "/home/mailman/cron/checkdbs", line 80, in main text += '\n' + pending_requests(mlist) File "/home/mailman/cron/checkdbs", line 123, in pending_requests text = NL.join(pending) UnicodeError: ASCII decoding error: ordinal not in range(128)
Anyone else seen this and know how to fix it? Couldn't find anything about this in the SF bug tracker...
I'm using the Release_2_1-maint CVS branch.
-Daniel
-- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/

The patch solved the problem. Thanks! :) Over to something else: Is there anyone out there that has written a script to flush (discard) the entire request db for a specified list? I need it badly.. ;) On Thu, 2003-02-06 at 11:25, Tokio Kikuchi wrote:
Hi,
Try this patch. It's a coincidence that I am working on it.
Index: checkdbs =================================================================== RCS file: /cvsroot/mailman/mailman/cron/checkdbs,v retrieving revision 2.17 diff -u -r2.17 checkdbs --- checkdbs 28 Oct 2002 03:43:42 -0000 2.17 +++ checkdbs 6 Feb 2003 10:21:27 -0000 @@ -92,6 +92,7 @@
def pending_requests(mlist): + lcset = Utils.GetCharSet(mlist.preferred_language) # Must return a byte string pending = [] first = 1 @@ -101,6 +102,8 @@ first = 0 when, addr, fullname, passwd, digest, lang = mlist.GetRecord(id) if fullname: + if _isunicode(fullname): + fullname = fullname.encode(lcset, 'replace') fullname = ' (%s)' % fullname pending.append(' %s%s %s' % (addr, fullname, time.ctime(when))) first = 1
=======
Daniel Buchmann wrote:
I was the puzzled receiver of these words this morning:
Traceback (most recent call last): File "/home/mailman/cron/checkdbs", line 136, in ? main() File "/home/mailman/cron/checkdbs", line 80, in main text += '\n' + pending_requests(mlist) File "/home/mailman/cron/checkdbs", line 123, in pending_requests text = NL.join(pending) UnicodeError: ASCII decoding error: ordinal not in range(128)
Anyone else seen this and know how to fix it? Couldn't find anything about this in the SF bug tracker...
I'm using the Release_2_1-maint CVS branch.
-Daniel
-- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/

Daniel Buchmann wrote:
The patch solved the problem. Thanks! :)
You're welcome.
Over to something else: Is there anyone out there that has written a script to flush (discard) the entire request db for a specified list? I need it badly.. ;)
It's me again. ;^) https://sourceforge.net/tracker/?func=detail&aid=636412&group_id=103&atid=300103 Ooops, not for one list but entire lists.
-- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/

- On 2003.02.06, in <1044527630.3201.18.camel@fornax.bibsys.no>,
- "Daniel Buchmann" <Daniel.Buchmann@bibsys.no> wrote:
The patch solved the problem. Thanks! :)
Over to something else: Is there anyone out there that has written a script to flush (discard) the entire request db for a specified list? I need it badly.. ;)
This might work for you. It will accept, reject, or discard all current post requests for one or more lists. You can give a reason. The reason enters the vette log, and is relayed to the poster if you're rejecting. I recommend that you try it on a test list or something, or save the backup of your config.db, or whatever. This is for an old version of Mailman and might not work as well for you as for me.
http://home.uchicago.edu/~dgc/sw/mailman/bulk-vette.py
server$ bulk-vette.py usage: /opt/bin/bulk-vette.py [-a | --accept] [-r | --reject] [-d | --discard] [-c "why" | --comment="why"] list [list ...]
-- -D. "Jobs are created when... Americans have more money... dgc@uchicago.edu and the best way to make sure Americans have that money is not to tax it.... More jobs mean more taxpayers and higher revenues to our government." - G.W. Bush
participants (3)
-
Daniel Buchmann
-
David Champion
-
Tokio Kikuchi