c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22169
[Bug 766029] Re: get_xml_id method crashes when called from xml_rpc
This bug seems to be related.
https://bugs.launchpad.net/openobject-server/+bug/689575
I agree with the talk there that it is a xmlrpclib limitation, but still
there should be a way to use get_xml_id with webservice ;-)
I'll try to get into this deeper tomorrow.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/766029
Title:
get_xml_id method crashes when called from xml_rpc
Status in OpenERP Server:
New
Bug description:
Env info:
Ubuntu 10.10
Python 2.6
Latest 6.0 (stable branch)
When i try to call get_xml_id method through xml_rpc call it crashes
because of a mismatch in dict key type.
It either crashes directly in the orm.py file because the key isn't
found (its created in one dict using str and in the other using int);
Or this is the python SocketServer class that complains because according to this class (at least in my env):
Fault: <Fault 1: "<type 'exceptions.TypeError'>:dictionary key must be string">
So I edited the orm.py file to always string cast the key in that
dict.
I don't know if it has other effects but so far it's working on my
side.
Patch attached
References