Commit 9b93a6aa authored by Yusei Tahara's avatar Yusei Tahara

convert data to string explicitly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 871e06fd
...@@ -131,7 +131,8 @@ class GeneratorCall(UserDict): ...@@ -131,7 +131,8 @@ class GeneratorCall(UserDict):
""" Encode data to transmitable text. """ """ Encode data to transmitable text. """
fp = StringIO() fp = StringIO()
try: try:
xmlrpclib.Binary(data=data).encode(fp) # data might be ERP5Type.Message.Message instance.
xmlrpclib.Binary(data=str(data)).encode(fp)
return fp.getvalue() return fp.getvalue()
finally: finally:
fp.close() fp.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment