IRC logs of #tryton for Thursday, 2012-03-15

chat.freenode.net #tryton log beginning Thu Mar 15 00:00:01 CET 2012
2012-03-15 09:26 <cjbarnes18> Hello, could someone point me to and example of using jsonrpc to access models?
2012-03-15 10:01 <pilou> cjbarnes18: wiki contains a code snippet http://code.google.com/p/tryton/wiki/CodeSnippets#tryton_jsonrpc_client_for_create_a_database
2012-03-15 10:05 <cjbarnes18> pilou: thanks, I have used this example, but have not successfully managed to abopt it for data access.
2012-03-15 10:06 <pilou> i wrote this sample https://projects.bioecoforests.com/projects/tryton-editor/repository/revisions/master/entry/scripts/tryton_import/import.py
2012-03-15 10:07 <pilou> you should check proteus too
2012-03-15 10:12 <cjbarnes18> thanks pilou, I have used proteus, but wanted to look at using jsonrpc to see if it could easily be used instead.
2012-03-15 10:13 <cjbarnes18> I need to create a web interface to a couple of models for a project I am working on, Have started using proteus, would rather not require xmlrpc though.
2012-03-15 10:35 <cjbarnes18> how do I discover the correct incantations for using jsonrpc?
2012-03-15 10:37 <cedk> cjbarnes18: man 3 inet :-)
2012-03-15 10:39 <cjbarnes18> hi cedk, I mean how to access objects in Tryton via jsonrpc. I have used the example in the wiki, but where do I look to doscover the rest?
2012-03-15 10:40 <cjbarnes18> *discover
2012-03-15 10:41 <cedk> cjbarnes18: jsonrpc is standardized
2012-03-15 10:41 <cedk> http://json-rpc.org/
2012-03-15 10:42 <cedk> cjbarnes18: after that you find all the object and method in the code
2012-03-15 10:43 <cjbarnes18> ok, thank you, was hoping for a shortcut ;) no examples for me I guess...
2012-03-15 10:50 <pilou> cjbarnes18: examples in the last link are not sufficient ?
2012-03-15 10:51 <cjbarnes18> pilou: I think it may well be, thank you :-)
2012-03-15 11:47 <cjbarnes18> pilou: I cant get your example to work, which jsonrpc are you using?
2012-03-15 11:53 <cedk> cjbarnes18: why don't you just import trytond ?
2012-03-15 11:56 <cjbarnes18> cedk: I have used that method, am looking at jsonrpc now.
2012-03-15 11:56 <cjbarnes18> seems that importing trytond is the path of least resistance.
2012-03-15 11:57 <cedk> cjbarnes18: it is just faster
2012-03-15 11:57 <cedk> cjbarnes18: and also you can manage the transaction
2012-03-15 11:57 <cedk> cjbarnes18: with jsonrpc you get a transaction per call
2012-03-15 11:58 <cjbarnes18> which is simplest to code?
2012-03-15 11:58 <cedk> cjbarnes18: and there is no benefit to do jsonrpc if you are in Python because proetus does all that for you
2012-03-15 11:58 <cedk> cjbarnes18: I can not answer because I don't know what you want to do
2012-03-15 11:59 <pilou> cjbarnes18: see the README file near import.py
2012-03-15 11:59 <cjbarnes18> cedk: Proteus uses either trytond or xmlrpc as I understand it.
2012-03-15 11:59 <cjbarnes18> pilou: ah ok, thanks
2012-03-15 12:02 <cedk> cjbarnes18: yes it is transparent
2012-03-15 12:04 <cjbarnes18> cedk: are there any plans to implement jsonrpc into Proteus?
2012-03-15 12:05 <cjbarnes18> cedk: sorry for all the stupiq questions, (I am a nube after all) :)
2012-03-15 12:06 <cjbarnes18> *stupid
2012-03-15 12:07 <cedk> cjbarnes18: not really
2012-03-15 12:08 <cedk> cjbarnes18: I started a prototype some times ago but did not get time to finish it
2012-03-15 13:16 <cjbarnes18> I've just gotten the Django example but using Proteus to work, its a bit slower but so much simpler.
2012-03-15 17:12 -!- Mayank(~mayank@122.162.103.68) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!