On 2015-06-15 05:03, hendrik.brande...@googlemail.com wrote: > Hello, > > I wrote a latex-module for tryton and it works until 3.5. > Sadly, since an update of the hg client repository, I get an error, when I > print a report: > > "TypeError: must be string or buffer, not dict" > > After a research, I found out, that the result of the execution of the > report, that the expecting data-variable > has not the desired type. > I managed this by using > > base64.b64decode(data['base64']) > > in the exec_method of main.py in the client. > But: What went wrong or did I missed something in the latex-report module? > I checked the report.py-file an found no direct changes since 3.5.
Since 3.6, the type for Binary is bytearray (Python2) or bytes (Python3). -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/