← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 766029] Re: get_xml_id method crashes when called from xml_rpc

 

** Changed in: openobject-server
   Importance: Undecided => Wishlist

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
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:
  Confirmed

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