On 2016-03-23 01:28, TPH wrote:
> The reason is very simple. I never have used RPC and don't know how to
> start.
>
> Do I have to install local client package e.g. with pip so I can make
> "import tryton.rpc as rpc"?
> We do talk about JSON-RPC, doesn't we? Or XML-RPC?
>
> May you have links?
> I found only old ones:
> https://code.google.com/archive/p/tryton/wikis/RemoteCalls.wiki#XML-RPC_in_Python
>
> Here are also not many informations:
> http://doc.tryton.org/3.2/trytond/doc/ref/rpc.html
>
> I have interests in doing it a better way.
Indeed when I said RPC call, I mean to skip the ActiveRecord pattern of
proteus and call the method directly from proteus like the method _read
does:
product_proxy = config.get_proxy('product.product')
product_proxy.read(ids, fields, context)
with proper ids, fields and context
PS: Please don't top-post on this mailing list, see
http://groups.tryton.org/netiquette
--
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/20160323105125.GN28248%40tetsuo.