~openerp-groupes/openobject-server/fix-delayed-ack

Viewing all changes in revision 3287.

  • Committer: Olivier Dony
  • Date: 2011-01-17 18:44:44 UTC
  • Revision ID: odo@openerp.com-20110117184444-mxjeneuoa0r5a85n
[FIX] report.interface: toxml() should return unicode to avoid any encoding issue propagation

It used to return utf-8 data but was brittle in the conversion, and would fail downstream
if the calling code did not pay attention to handle utf-8 data properly.
Returning unicode forces callers to auto-cast to unicode for any string operation, saving
potential trouble later. 
From the addons that currently call toxml(), none use it in a manner that would fail in case
unicode data is returned, so we should be on the safe side there too.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: