A Dilluns, 26 de novembre de 2012 11:22:35, Robert Schöftner va escriure: > Am 2012-11-26 09:41, schrieb Albert Cervera i Areny: > > Hi, > > > > does anybody have a small java example for accessing tryton using > > JSON? I know the android client has one but I think it has android > > dependencies. > > > > > > > > Also, I did a quick test to access using the python example here [1] > > but it's raising a xmlrpclib.ProtocolError: <ProtocolError for > > localhost:8069/tryton/system: 401 Unauthorized>. Is the doc still > > valid? Maybe I'm doing something very wrong? > > > > > > > > > > > > [1] http://code.google.com/p/tryton/wiki/RemoteCalls#XML-RPC_in_Python > > just tested that script, seems to work (i tested with admin user) except > for the report, this returns a tuple of 4 instead of the expected tuple > off 3. > > perhaps you got your url somehow messed up?
Yes, a stupid mistake with URL. Thanks for testing, Robert. -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog -- -- [email protected] mailing list
