Merge lp:~vaab/openobject-server/fix-ircron-utf8-error2 into lp:openobject-server/6.1
Proposed by
Valentin Lab
Status: | Needs review |
---|---|
Proposed branch: | lp:~vaab/openobject-server/fix-ircron-utf8-error2 |
Merge into: | lp:openobject-server/6.1 |
Diff against target: |
18 lines (+2/-2) 1 file modified
openerp/addons/base/ir/ir_cron.py (+2/-2) |
To merge this branch: | bzr merge lp:~vaab/openobject-server/fix-ircron-utf8-error2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+104750@code.launchpad.net |
Description of the change
job['name'] can be quite long and not very system friendly (unicode, spaces, and other characters).
The unicode part is translated in threading module thanks to "str(name)", which fails on non-ASCII characters. See the linked bug report.
It happens that I use the thread name in my logging facility, and having very long thread name is not very convenient. And conversion towards unicode is done back in the logging facility. So explicit "utf-8" encoding seems bad.
So it seems to make sense to me to use a full ASCII, small, and unique identifier as the threadname here.
Any comments ?
To post a comment you must log in.
Unmerged revisions
- 4160. By Valentin Lab
-
[FIX] ir_cron should encode the unicode job name.