seantis / seantis.reservation

Reservation module for plone portal types
21 stars 7 forks source link

Unicode error #160

Open Epithumia opened 10 years ago

Epithumia commented 10 years ago

One of the strings in reservation/reports/lastest_reservations.py isn't properly "unicoded", which leads to the draded ascii encoding error when it receives a string containing unicode, either from the translated msgid "Today, at ${time}" string or from the email of the reservee. In https://github.com/seantis/seantis.reservation/blob/master/seantis/reservation/reports/latest_reservations.py#L134:

return '{} - {}'.format(human_date_text, reservation.title)

should be

return u'{} - {}'.format(human_date_text, reservation.title)

Once I'm done with them and have tested it live, expect a pull request with the strings translated to French :)

href commented 10 years ago

Thanks!

Will you add the unicode fix to the pull request?

Epithumia commented 10 years ago

I can do that if you want.

href commented 10 years ago

I wouldn't mind. Thank you :-)

On July 29, 2014 12:59:05 PM CEST, Epithumia notifications@github.com wrote:

I can do that if you want.


Reply to this email directly or view it on GitHub: https://github.com/seantis/seantis.reservation/issues/160#issuecomment-50462114