← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 555861] Re: report_sxw date.strftime doesn't accept unicode format on python2.5

 

Hello Paul,

The fix has been released in the mean time and the latest trunk does not have this issue anymore (as well as similar ones).
Thanks for reporting!

** Changed in: openobject-server
       Status: New => Fix Released

-- 
report_sxw date.strftime doesn't accept unicode format on python2.5
https://bugs.launchpad.net/bugs/555861
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Fix Released

Bug description:
While rendering a report containing a date an exception is thrown:

File "/home/paul/erp.buildout/parts/openerp-server/bin/report/report_sxw.py", line 114, in __str__
     return date.strftime(self.lang_obj.date_format)
TypeError: strftime() argument 1 must be str, not unicode

Coercing the self.lang_obj.date_format to an encoded type is sufficient