FAQ
Patches item #1182245, was opened at 2005-04-13 16:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid00103&aid82245&group_id3

Category: internationalization
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: peter gervai (grin)
Assigned to: Nobody/Anonymous (nobody)
Summary: admin.py unicode error patch (shouldn't these all be fixed?)

Initial Comment:
upgraded from 2.0 to 2.1.xx. mailman died some smaller deaths,
and a larger one, biting customer with 8859-2 email addresses,
which are valid, btw.

*this is not a proper fix* (I guess)
*a am not a python programmer* (I am pretty sure about this one)

however, it solves the bug and It Works(tm).

--- admin.py-orig Wed Apr 13 15:44:33 2005
+++ admin.py Wed Apr 13 16:14:27 2005
@@ -867,7 +867,13 @@
chunksz = mlist.admin_member_chunksize
# The email addresses had /better/ be ASCII, but might be
encoded in the
# database as Unicodes.
- all = [_m.encode() for _m in mlist.getMembers()]
+ all = []
+ for _m in mlist.getMembers():
+ try:
+ all.append( _m.encode() )
+ except:
+ all.append( _m )
+ #all = [_m.encode('utf-8','ignore') for _m in mlist.getMembers()]
all.sort(lambda x, y: cmp(x.lower(), y.lower()))
# See if the query has a regular expression
regexp = cgidata.getvalue('findmember', '').strip()


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

You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid00103&aid82245&group_id3

Search Discussions

  • SourceForge.net at Apr 13, 2005 at 4:33 pm
    Patches item #1182245, was opened at 2005-04-13 16:20
    Message generated for change (Comment added) made by grin
    You can respond by visiting:
    https://sourceforge.net/tracker/?funcÞtail&atid00103&aid82245&group_id3

    Category: internationalization
    Group: Mailman 2.1
    Status: Open
    Resolution: None
    Priority: 5
    Submitted By: peter gervai (grin)
    Assigned to: Nobody/Anonymous (nobody)
    Summary: admin.py unicode error patch (shouldn't these all be fixed?)

    Initial Comment:
    upgraded from 2.0 to 2.1.xx. mailman died some smaller deaths,
    and a larger one, biting customer with 8859-2 email addresses,
    which are valid, btw.

    *this is not a proper fix* (I guess)
    *a am not a python programmer* (I am pretty sure about this one)

    however, it solves the bug and It Works(tm).

    --- admin.py-orig Wed Apr 13 15:44:33 2005
    +++ admin.py Wed Apr 13 16:14:27 2005
    @@ -867,7 +867,13 @@
    chunksz = mlist.admin_member_chunksize
    # The email addresses had /better/ be ASCII, but might be
    encoded in the
    # database as Unicodes.
    - all = [_m.encode() for _m in mlist.getMembers()]
    + all = []
    + for _m in mlist.getMembers():
    + try:
    + all.append( _m.encode() )
    + except:
    + all.append( _m )
    + #all = [_m.encode('utf-8','ignore') for _m in mlist.getMembers()]
    all.sort(lambda x, y: cmp(x.lower(), y.lower()))
    # See if the query has a regular expression
    regexp = cgidata.getvalue('findmember', '').strip()


    ----------------------------------------------------------------------
    Comment By: peter gervai (grin)
    Date: 2005-04-13 16:33

    Message:
    Logged In: YES
    user_id–22

    ...but I must comment that it is likely the users will enter 8859-2
    ancoded local parts, and maybe I10L'ised domains (IDN) too. Mailman is
    not supposed to choke and die on these. I guess...


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

    You can respond by visiting:
    https://sourceforge.net/tracker/?funcÞtail&atid00103&aid82245&group_id3

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-coders @
categoriespython
postedApr 13, '05 at 4:20p
activeApr 13, '05 at 4:33p
posts2
users1
websitelist.org

1 user in discussion

SourceForge.net: 2 posts

People

Translate

site design / logo © 2022 Grokbase