cubicweb-timesheet #5753309 jsonp view tries to write unicode objects [validation pending]

Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/lib/python2.7/dist-packages/cubicweb/web/views/basecontrollers.py", line 133, in publish Jul 26 13:52:53 cepheus circusd[9172]: rset=rset, view=view) Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/lib/python2.7/dist-packages/cubicweb/cwvreg.py", line 223, in main_template Jul 26 13:52:53 cepheus circusd[9172]: res = obj.render(**kwargs) Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/lib/python2.7/dist-packages/cubicweb/view.py", line 136, in render Jul 26 13:52:53 cepheus circusd[9172]: view_func(**context) Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/lib/python2.7/dist-packages/cubicweb/web/views/basetemplates.py", line 120, in call Jul 26 13:52:53 cepheus circusd[9172]: view.render() Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/lib/python2.7/dist-packages/cubicweb/view.py", line 136, in render Jul 26 13:52:53 cepheus circusd[9172]: view_func(**context) Jul 26 13:52:53 cepheus circusd[9172]: File "/usr/share/cubicweb/cubes/timesheet/views/jsonp.py", line 54, in call Jul 26 13:52:53 cepheus circusd[9172]: self.w('%s(%s)' % (self._cw.form['callback'], json.dumps(data))) Jul 26 13:52:53 cepheus circusd[9172]: TypeError: 'unicode' does not have the buffer interface

ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 1); <em>backlink</em></p>
Inline strong start-string without end-string.
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 1); <em>backlink</em></p>
Inline strong start-string without end-string.
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 1); <em>backlink</em></p>
Inline strong start-string without end-string.

the view is declared as binary, so should deal with encoding on its own.

prioritynormal
typebug
done in0.13.1
load0.250
load left0.000
closed by#7a8047bf8514 [views] DayTypesJsonView shouldn't pass unicode to self.w
patch[views] DayTypesJsonView shouldn't pass unicode to self.w [applied]