← Back to team overview

openerp-expert-framework team mailing list archive

RFC Towards an official client library

 

Everybody on this mailing list probably has already coded one or more openerp client library and we all know that it's a waste of time. It would more efficient if we had only one official client library. I would like to bless one library to make it the official one. But i dont know which one yet. We created a project on launchpad where everyone can push their own libs.

https://launchpad.net/openerp-client-lib

Nicolas Vanhoren (my dear colleague) packaged and published a library

http://pypi.python.org/pypi/openerp-client-lib/1.0.0

This library is not endorsed by OpenERP SA but it seems to be a good candidate. So we ask you to push your candidate libs on launchpad so that we can review them. Some important requirements:

- the library must not use global vars (means you can have multiple connection to different servers/dbs in one process)
- api should be similar to the server side api
- no active records nor browse records (yet)

The rationale about the last point is that we plan to introduce a higher level api more ormish/activerecord-like/queryset-like on the top of the the current orm layer (and, yes, it means we will finally get rid of cr,uid,ids,context)

This is a definitively a 6.2 topic. But I plan to publish, in collaboration with Vo Minh Thu, a backward compatible POC soon and i think it will be usable in the 6.1 server too as an extra module. And I want this layer to work also client side. So that server side code would be the same as client side code (but non transactional).

Antony.


Follow ups