← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 676505] [NEW] object xmlrpc interface regression

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
object xmlrpc interface regression
https://bugs.launchpad.net/bugs/676505
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: New

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.





Follow ups

References