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

chat.freenode.net #tryton log beginning Thu Mar 15 00:00:01 CET 2012
cjbarnes18Hello, could someone point me to and example of using jsonrpc to access models?09:26
piloucjbarnes18: wiki contains a code snippet http://code.google.com/p/tryton/wiki/CodeSnippets#tryton_jsonrpc_client_for_create_a_database10:01
cjbarnes18pilou: thanks, I have used this example, but have not successfully managed to abopt it for data access.10:05
piloui wrote this sample https://projects.bioecoforests.com/projects/tryton-editor/repository/revisions/master/entry/scripts/tryton_import/import.py10:06
pilouyou should check proteus too10:07
cjbarnes18thanks pilou, I have used proteus, but wanted to look at using jsonrpc to see if it could easily be used instead.10:12
cjbarnes18I 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.10:13
cjbarnes18how do I discover the correct incantations for using jsonrpc?10:35
cedkcjbarnes18: man 3 inet :-)10:37
cjbarnes18hi 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?10:39
cjbarnes18*discover10:40
cedkcjbarnes18: jsonrpc is standardized10:41
cedkhttp://json-rpc.org/10:41
cedkcjbarnes18: after that you find all the object and method in the code10:42
cjbarnes18ok, thank you,  was hoping for a shortcut ;) no examples for me I guess...10:43
piloucjbarnes18: examples in the last link are not sufficient ?10:50
cjbarnes18pilou: I think it may well be, thank you :-)10:51
cjbarnes18pilou: I cant get your example to work, which jsonrpc are you using?11:47
cedkcjbarnes18: why don't you just import trytond ?11:53
cjbarnes18cedk: I have used that method, am looking at jsonrpc now.11:56
cjbarnes18seems that importing trytond is the path of least resistance.11:56
cedkcjbarnes18: it is just faster11:57
cedkcjbarnes18: and also you can manage the transaction11:57
cedkcjbarnes18: with jsonrpc you get a transaction per call11:57
cjbarnes18which is simplest to code?11:58
cedkcjbarnes18: and there is no benefit to do jsonrpc if you are in Python because proetus does all that for you11:58
cedkcjbarnes18: I can not answer because I don't know what you want to do11:58
piloucjbarnes18: see the README file near import.py11:59
cjbarnes18cedk: Proteus uses either trytond or xmlrpc as I understand it.11:59
cjbarnes18pilou: ah ok, thanks11:59
cedkcjbarnes18: yes it is transparent12:02
cjbarnes18cedk: are there any plans to implement jsonrpc into Proteus?12:04
cjbarnes18cedk: sorry for all the stupiq questions, (I am a nube after all) :)12:05
cjbarnes18*stupid12:06
cedkcjbarnes18: not really12:07
cedkcjbarnes18: I started a prototype some times ago but did not get time to finish it12:08
cjbarnes18I've just gotten the Django example but using Proteus to work, its a bit slower but so much simpler.13:16
-!- Mayank(~mayank@122.162.103.68) has left #tryton17:12

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!