> -----Ursprüngliche Nachricht----- > Von: Ian Bicking [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 9. August 2007 17:16 > An: Andrew Smart > Cc: [email protected] > Betreff: Re: [Paste] Bug? in paste.auth.auth_tkt.encode_ip_timestamp > > Andrew Smart wrote: > > Hi folks, > > > > I'm stumbling over an error which is is probably a bug... > I'm new in > > pylons so I might be wrong... > >
> Why would it get converted to unicode? I thought the > encode_ip_timestamp stuff was only used for the md5 hash. Ian, I don't know why it is converted to unicode - probably because md5() can't cope with ascii encoded strings. I just say "it happens" and "it goes wrong" ;-) I fixed the issue with chr() locally with unichr() only to get in trouble again with other ascii/binary strings used in the calculate_digest function (currently the problems are in tokens and/or user_data). Still digging... Andrew > > -- > Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org > : Write code, do good : > http://topp.openplans.org/careers _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
