Message5510

Author w_hunger
Recipients w_hunger
Date 2010-02-09.15:08:05
SpamBayes Score 1.30453e-07
Marked as misclassified No
Message-id <1265728088.87.0.786937186716.issue1553@psf.upfronthosting.co.za>
In-reply-to
Content
Database access behaves differently in Jython 2.1 and 2.5.1: Cursors return binary string in 2.1 and unicode strings in 2.5.1. I'm not sure which is the correct behaviour according to the API, but in 2.5.1, the usage of dbexts.console() will fail in line 85 as soon as one data item is not encodeable in ASCII:

85:             row = map(lambda x: str(x), row)

A naïve Fix would be

85:             row = map(lambda x: unicode(x), row)
History
Date User Action Args
2010-02-09 15:08:10w_hungersetrecipients: + w_hunger
2010-02-09 15:08:08w_hungersetmessageid: <1265728088.87.0.786937186716.issue1553@psf.upfronthosting.co.za>
2010-02-09 15:08:08w_hungerlinkissue1553 messages
2010-02-09 15:08:05w_hungercreate