IRC logs of #tryton for Tuesday, 2013-09-10

chat.freenode.net #tryton log beginning Tue Sep 10 00:00:01 CEST 2013
2013-09-10 00:54 -!- sisalp(~sisalpuse@boxoo.sisalp.net) has left #tryton
2013-09-10 00:54 <plantian> Looking at http://code.google.com/p/tryton/wiki/RemoteCalls#XML-RPC_in_Python it seems like the session id was accessible in tryton <= 1.4, is there anything like tracking a session id to be re-used across requests in tryton 1.6+ ? Do I need to get the headers out of the Server object somehow?
2013-09-10 01:00 <cedk> plantian: after 1.4, XML-RPC became stateless
2013-09-10 01:02 <plantian> cedk: So everytime I connect I resend the username and password?
2013-09-10 01:04 <cedk> plantian: yes
2013-09-10 01:06 <plantian> cedk: I guess jsonrpc doesn't suffer from that ?
2013-09-10 01:10 <cedk> plantian: no
2013-09-10 01:10 <cedk> plantian: indeed, I would like to unify both and have both method supported by both protocol
2013-09-10 01:10 <cedk> plantian: and so use the standard auth from HTTP
2013-09-10 01:16 <plantian> cedk: What is the best way to connect to the trytond server directly then without the tryton client?
2013-09-10 01:17 <plantian> cedk: Or I guess I don't understand, couldn't I just use the login method like the tryton client is doing?
2013-09-10 01:18 <cedk> plantian: can't answer because I don't know what you want to do
2013-09-10 01:18 <cedk> plantian: for automatic script, you would probably don't want to have to manage session so xml-rpc is better
2013-09-10 01:19 <cedk> plantian: for a program with a user behind, probably json-rpc is better
2013-09-10 01:22 <plantian> cedk: I have a VPS webserver and I want to create a customize web interface that connects to a VPS server running trytond. Sort of proxying requests.
2013-09-10 10:47 <jeancavallo> cedk: I am seeing this error with python-sql : unsupported operand type(s) for /: 'Mul' and 'Sub'
2013-09-10 10:47 <jeancavallo> cedk: What is the proper way to do a division between decimals ?
2013-09-10 10:55 <cedk> jeancavallo: in SQL division is floordiv
2013-09-10 10:57 <cedk> jeancavallo: or you have to use the function Div
2013-09-10 10:57 <jeancavallo> cedk: Thank you
2013-09-10 10:58 <cedk> jeancavallo: oops no sorry Div is also floordiv
2013-09-10 10:58 <jeancavallo> cedk: I will go with FloorDiv then
2013-09-10 11:00 <cedk> jeancavallo: indeed, I think there is a bug in python-sql
2013-09-10 11:00 <cedk> jeancavallo: "/" is floordiv with interger and real div with non-integer
2013-09-10 11:00 <jeancavallo> cedk: Well, I did suppose '/' would be converted properly
2013-09-10 11:01 <jeancavallo> cedk: So should I wait for a fix ?
2013-09-10 11:22 <cedk> jeancavallo: http://codereview.appspot.com/13244046
2013-09-10 11:29 <jeancavallo> cedk: Ca a l'air bon
2013-09-10 11:29 <jeancavallo> cedk: Sry, Looks good :)
2013-09-10 12:54 <guillemBarba> hi, I'm doing a proteus script where I set a many2many relation, but it raise an error when I try to add the same target instance to two different instances
2013-09-10 12:55 <cedk> guillemBarba: use different instances
2013-09-10 12:56 <guillemBarba> cedk: ¿? I need to add the same object in the relation of different instances
2013-09-10 12:56 <guillemBarba> http://pastebin.com/J79vJHdE
2013-09-10 12:57 <guillemBarba> cedk: do you say that I need to reinstantiate the target instance?
2013-09-10 12:59 <cedk> guillemBarba: yes
2013-09-10 13:02 <guillemBarba> ok. doing a s.locations_to_fed.append(Location(loc.id) ) works. thnks
2013-09-10 13:05 <jvblasco> is there any place with documentation about allowing the tryton server generate PDF reports?
2013-09-10 13:06 <jvblasco> i'm looking around doc.tryton.org in the reports sections but it references to INSTALL. What install file is it refering to? I looked in the relatorio docs and couldn't find it.
2013-09-10 13:20 <jeancavallo> jvblasco: i think you have no choice but to generate odt files then convert them using unoconv
2013-09-10 13:26 <jvblasco> jeancavallo: unoconv?
2013-09-10 13:26 <jvblasco> jeancavallo: may it be the piece i'm missing and makes the server throw errors?
2013-09-10 13:28 <jeancavallo> jvblasco: There is a special entry in trytond.conf to manage unoconv connection.
2013-09-10 13:29 <jvblasco> jeancavallo: great, working on it. Thnx so much ;)
2013-09-10 15:25 <jvblasco> jeancavallo: it worked, i can now get pdf reports from the client. Thnx a lot ;)
2013-09-10 19:37 <martinguzman> Hi all! I just have a question: I have a model (Physician) with a Many2Many field (services) like this: http://pastebin.com/VCTrJGHg.
2013-09-10 19:37 <martinguzman> I have another model (Appointment) which has a physician and a service. How should I define the service or set its domain so this service is one of the physician services? I tried this: http://pastebin.com/mLjqskgH, but does not work...
2013-09-10 20:07 <cedk> martinguzman: you must add a function field which compute the services list
2013-09-10 20:07 <cedk> martinguzman: you can not use dot notation in Eval
2013-09-10 20:09 <martinguzman> cedk, thanks!

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