← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 676505] Re: object xmlrpc interface regression

 

*** This bug is a duplicate of bug 632195 ***
    https://bugs.launchpad.net/bugs/632195

Hello,

As of version 6.0 the obj_list() method is deprecated and should not be called via RPC anymore.
If you need to get the list of models you should instead call execute(..., 'ir.model', 'read' ... ) via RPC.

The server now properly reports this error when you attempt to call it via RPC (as of revision 3078
 odo@xxxxxxxxxxx-20101208131328-gycbi36423txdnc1 )

Thanks for reporting!

PS: marking as duplicate of bug 632195

** Changed in: openobject-server
       Status: Confirmed => Fix Released

** Changed in: openobject-server
    Milestone: None => 6.0-rc2

** This bug has been marked a duplicate of bug 632195
   unable to call obj_list method
 * You can subscribe to bug 632195 by following this link: https://bugs.launchpad.net/openobject-server/+bug/632195/+subscribe

-- 
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/676505

Title:
  object xmlrpc interface regression

Status in OpenObject Server:
  Fix Released

Bug description:
  in v5.0.x, the following code (assuming all variables are previously correctly assigned):
 / 
| OBJ=xmlrpclib.ServerProxy("http://%s:%u/xmlrpc/object"%(HOST,PORT))
| OBJ.obj_list(BASE,UID,PASS)
 \
returns the list of all available objects as expected

in v6.0 (rc1 and trunk), the same code raises an exception:
 /
| xmlrpclib.Fault: [...] obj_list() takes exactly 1 argument (3 given) [...]
 \

A quick check shows that the obj_list() function in osv.py is not compliant with the expected interface fn(db, uid, ...) as described in web_services.py, the problem is fixed by modifying the obj_list signature from obj_list(self) to obj_list(self,db,uid).
It looks like a regression from v5 since that code has been changed (dispatch, prefix exp_, etc.) and this is not a restriction on the object proxy interface as obj_list is still exported.





References