openerp-expert-framework team mailing list archive
-
openerp-expert-framework team
-
Mailing list archive
-
Message #00593
Re: RFC Towards an official client library
2011/9/5 Ovnicraft <ovnicraft@xxxxxxxxx>:
> Hello i read about this maybe yo can consider a better python
> lib https://github.com/lasarux/ooop
> IMHO better than pypi registered.
This one seems to have the best api of the bunch I saw posted here. I
still think it has one problem, why the .get and .new? I think .new
should be mapped to __call__ and maybe .get too. So instead of:
o.ResPartner.new() and o.ResPartner.new(name='Guido', active=True)
you get:
o.ResPartner() and o.ResPartner(name='Guido', active=True)
also it would be cool is any of this libs could be used inside an
openerp module, so no more pool.get (which can we can easily map
__get_attr__ to pool.get(captalization_to_points(attr))) and the ugly
browse/search and the cr,uid everywere (whi a custom metaclass that
decorate all methods with an OOP instance).
Follow ups
References