chat.freenode.net #tryton log beginning Wed Aug 31 00:00:01 CEST 2011 | ||
2011-08-31 00:54 -!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton | ||
2011-08-31 01:05 -!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton | ||
2011-08-31 02:11 -!- ikks(~ikks@186.29.58.62) has joined #tryton | ||
2011-08-31 03:32 -!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton | ||
2011-08-31 04:49 -!- alimon(~alimon@189.154.55.187) has joined #tryton | ||
2011-08-31 06:38 -!- hoRn(~jan@dslb-094-222-150-047.pools.arcor-ip.net) has joined #tryton | ||
2011-08-31 07:28 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2011-08-31 08:13 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton | ||
2011-08-31 08:14 <hoRn> bechamel: Good Morning | ||
2011-08-31 08:15 <bechamel> hoRn: good morning | ||
2011-08-31 08:15 <hoRn> bechamel: still trying json-rpc with a coffee in my hands | ||
2011-08-31 08:16 <bechamel> hoRn: and it works ? | ||
2011-08-31 08:17 <hoRn> bechamel: s.model.res.user.get_preferences(user_id, session, True, {}) works ;) | ||
2011-08-31 08:18 <hoRn> bechamel: but when accessing models with s.model.product.product.method i get an error | ||
2011-08-31 08:19 <hoRn> bechamel: __init__() takes exactly 3 arguments (362 given) | ||
2011-08-31 08:19 <bechamel> hoRn: :) | ||
2011-08-31 08:19 <hoRn> bechamel: am i dumb? | ||
2011-08-31 08:20 <bechamel> hoRn: probably you forgot [] around ids or something like that | ||
2011-08-31 08:21 <hoRn> bechamel: s.model.product.product.read([1],context) | ||
2011-08-31 08:21 <bechamel> hoRn: is your context a string or a dict ? | ||
2011-08-31 08:22 <hoRn> bechamel: dict | ||
2011-08-31 08:22 <bechamel> hoRn: for debugging rpc what I used to do is to put a print of args kwargs around line 153 in trytond/dispatcher.py | ||
2011-08-31 08:22 <bechamel> like that I can see what the server receive | ||
2011-08-31 08:23 <hoRn> bechamel: ok | ||
2011-08-31 08:23 <bechamel> and compare with the call made by the gtk client | ||
2011-08-31 08:30 <hoRn> bechamel: no idea | ||
2011-08-31 08:31 <bechamel> hoRn: you don't see anything strange server side ? | ||
2011-08-31 08:32 <hoRn> bechamel: only code 400, message Bad request syntax - i read that ist the first try with ssl | ||
2011-08-31 08:32 <bechamel> hoRn: yes the server does auto-detection | ||
2011-08-31 08:32 <bechamel> hoRn: paste the full traceback on a pastebin | ||
2011-08-31 08:33 -!- vladimirek(~vladimire@bband-dyn34.178-40-42.t-com.sk) has joined #tryton | ||
2011-08-31 08:33 <hoRn> bechamel: of the ssl-error? | ||
2011-08-31 08:34 <hoRn> bechamel: http://pastie.org/2458531 | ||
2011-08-31 08:34 <hoRn> bechamel: | ||
2011-08-31 08:34 <bechamel> hoRn: not the "__init__() takes exactly 3 arguments (362 given)" | ||
2011-08-31 08:34 <bechamel> s/not/no/ | ||
2011-08-31 08:35 <hoRn> bechamel: sorry | ||
2011-08-31 08:36 <hoRn> bechamel: http://pastie.org/2458531 | ||
2011-08-31 08:37 <hoRn> bechamel: the __request ist taken from tryton client | ||
2011-08-31 08:37 -!- okko1(~okko@62.58.29.41) has joined #tryton | ||
2011-08-31 08:39 <bechamel> hoRn: isn't the error comming from " Fault(*response['error'])" -> the * before the string expand it | ||
2011-08-31 08:42 <hoRn> bechamel: ok | ||
2011-08-31 08:42 <hoRn> bechamel: reading code always helps | ||
2011-08-31 08:43 <hoRn> bechamel: will debug it with the complete error from server | ||
2011-08-31 08:48 -!- ralf58_(~quassel@dslb-088-070-134-192.pools.arcor-ip.net) has joined #tryton | ||
2011-08-31 08:50 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2011-08-31 08:52 <hoRn> bechamel: that was really dumb - json needs user_id and session as first arguments | ||
2011-08-31 08:53 <bechamel> hoRn: just like user.get_preferences :) | ||
2011-08-31 08:54 <hoRn> bechamel: need to hack your server for deleting this irc-log | ||
2011-08-31 08:54 <bechamel> hoRn: .. and the backup copy | ||
2011-08-31 08:56 <hoRn> bechamel: or i change my identity - its a bit faster | ||
2011-08-31 09:16 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2011-08-31 09:20 <hoRn> bechamel: | ||
2011-08-31 09:20 <hoRn> json: 1924 Products in 46 sec | ||
2011-08-31 09:20 <hoRn> proteus: 1924 Products in 29 sec | ||
2011-08-31 09:21 <cedk> hoRn: what are you reading on those products? | ||
2011-08-31 09:22 <hoRn> bechamel: simple search_read with id > 0 | ||
2011-08-31 09:22 <cedk> hoRn: but which fields? | ||
2011-08-31 09:23 <hoRn> cedk: all fields | ||
2011-08-31 09:23 <cedk> hoRn: that's a bad idea | ||
2011-08-31 09:23 <cedk> hoRn: you should read only what you need | ||
2011-08-31 09:24 <hoRn> cedk: its only for checking the possibilities for connection our shopsoftware directly to tryton | ||
2011-08-31 09:24 <cedk> hoRn: yes but if you get a Function fields that is not performant than you can not deduce anything of your test | ||
2011-08-31 09:25 <hoRn> cedk: ok - thats reasonable | ||
2011-08-31 09:26 <cedk> hoRn: make just first a test by reading only name for example | ||
2011-08-31 09:34 <hoRn> cedk: reading only one field: json: 1924 Products in 2.4932539463 sec | ||
2011-08-31 09:34 <hoRn> proteus: 1924 Products in 0.944680929184 sec | ||
2011-08-31 09:35 <cedk> hoRn: this sounds more normal | ||
2011-08-31 09:36 <hoRn> cedk: I espected json faster than xml-rpc | ||
2011-08-31 09:36 <cedk> hoRn: it is proteus with xml-rpc or with trytond | ||
2011-08-31 09:36 <bechamel> hoRn: me too | ||
2011-08-31 09:37 <cedk> hoRn: what is the code of proteus? | ||
2011-08-31 09:37 <hoRn> cedk: proteus with xml-rpc | ||
2011-08-31 09:37 <hoRn> conn = config.XmlrpcConfig('xxx') | ||
2011-08-31 09:38 <hoRn> Model.get(xxx, conn).search_read() | ||
2011-08-31 09:40 <cedk> hoRn: and jsonrpc? | ||
2011-08-31 09:41 <hoRn> cedk: the complete jsonrpc.py from tryton | ||
2011-08-31 09:46 <cedk> hoRn: ok so you have the login part | ||
2011-08-31 09:47 <cedk> hoRn: I think it is the diff. you get some more request with jsonrpc | ||
2011-08-31 09:48 <hoRn> cedk: ok - that was only for compraring the possibilities | ||
2011-08-31 10:08 -!- elbenfreund(~elbenfreu@f055097236.adsl.alicedsl.de) has joined #tryton | ||
2011-08-31 11:42 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2011-08-31 11:43 <hoRn> cedk:ping | ||
2011-08-31 11:44 <hoRn> cedk: ping | ||
2011-08-31 11:44 <cedk> hoRn: pong pong | ||
2011-08-31 11:44 <hoRn> cedk: sorry | ||
2011-08-31 11:46 <hoRn> cedk: i was looking in the code and printing some queries. the clause generated from reduce_ids slows down a query from 11ms to 311ms. but i finally don't understand all the mechanism of the involved methods: why we need to reduce the ids given in read? | ||
2011-08-31 11:47 -!- nicoe(~nicoe@ced.homedns.org) has joined #tryton | ||
2011-08-31 11:55 -!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton | ||
2011-08-31 12:10 -!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton | ||
2011-08-31 12:17 <hoRn> cedk: sorry - my mistake again. didn't comprare teh right values | ||
2011-08-31 12:18 <cedk> hoRn: normally reduce_ids speeds up the queries because it reduces the length of the query and also the database can easily find better query plan | ||
2011-08-31 12:19 <hoRn> cedk: i was wrong - the timelag comes from an other param | ||
2011-08-31 12:25 -!- zxq9(~zxq9@FL1-119-244-163-75.okn.mesh.ad.jp) has joined #tryton | ||
2011-08-31 12:35 -!- ikks(~ikks@190.27.117.63) has joined #tryton | ||
2011-08-31 12:45 -!- ndn_pit(~ndn_pit@95.56.183.197) has joined #tryton | ||
2011-08-31 12:48 <ndn_pit> hi! can i get selected One2Many records? | ||
2011-08-31 12:49 <ndn_pit> cedk? | ||
2011-08-31 12:50 <hoRn> ndn_pit: like widget=selection? | ||
2011-08-31 12:51 <hoRn> ndn_pit: no - this is Many2one | ||
2011-08-31 12:51 <ndn_pit> no, i mean in form i have One2Many field, and in that field i have several records... how can i get access to "selected" records? | ||
2011-08-31 12:52 <hoRn> ndn_pit: don't know | ||
2011-08-31 12:52 <ndn_pit> thanks | ||
2011-08-31 12:54 -!- ndn_pit(~ndn_pit@95.56.183.197) has left #tryton | ||
2011-08-31 12:54 -!- ndn_pit(~ndn_pit@95.56.183.197) has joined #tryton | ||
2011-08-31 12:55 <cedk> ndn_pit: you can't | ||
2011-08-31 12:55 <ndn_pit> it's bad :( | ||
2011-08-31 12:56 <cedk> ndn_pit: no, I think it is because you try to do something the wrong way | ||
2011-08-31 12:59 <ndn_pit> i wand to do some actions to several records at once, why it wrong way? some times it easy than do it for every record individually... | ||
2011-08-31 12:59 <hoRn> ndn_pit: this you can do with a wizard | ||
2011-08-31 13:00 <hoRn> ndn_pit: example here: | ||
2011-08-31 13:00 <cedk> ndn_pit: you must do it on a view with the records instead of in one2many view | ||
2011-08-31 13:01 <cedk> one2many widget is a representation of a field not a set of records | ||
2011-08-31 13:02 <hoRn> ndn_pit: thats true - in the tree view: http://git.subdir.eu/paul/trytond_contract/tree/invoice.py#n55 Invoice batch action | ||
2011-08-31 13:03 <hoRn> ndn_pit: dont have a repoview - so I take the one from paul | ||
2011-08-31 13:03 <hoRn> pjstevns: is it ok? | ||
2011-08-31 13:06 <ndn_pit> but how can i choose special records? | ||
2011-08-31 13:07 <hoRn> ndn_pit: in the treeview can select them in the standard view | ||
2011-08-31 13:08 <hoRn> ndn_pit: standard way i mean | ||
2011-08-31 13:08 <pjstevns> hoRn: be my guest | ||
2011-08-31 13:09 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-08-31 13:09 <ndn_pit> if i create wizard to child model, has it apper in parent model's form? | ||
2011-08-31 13:13 <hoRn> ndn_pit: you could open a new view with the domain of the current view: so you have only the entries of the child model selected, which are related to the parent model. | ||
2011-08-31 13:16 <ndn_pit> ok i will try... thank you | ||
2011-08-31 13:31 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2011-08-31 14:07 -!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton | ||
2011-08-31 14:16 -!- okko1(~okko@62.58.29.41) has joined #tryton | ||
2011-08-31 14:40 -!- ndn_pit(~ndn_pit@95.56.183.197) has left #tryton | ||
2011-08-31 15:31 -!- dfamorato(~dfamorato@2001:470:5:630:70e4:c9ba:fec0:37aa) has joined #tryton | ||
2011-08-31 15:32 -!- dfamorato_(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton | ||
2011-08-31 15:35 -!- dfamorato_(~dfamorato@2001:470:5:630:f4f2:de59:30c7:1f12) has joined #tryton | ||
2011-08-31 15:57 -!- alimon(alimon@189.154.55.187) has joined #tryton | ||
2011-08-31 16:43 -!- pepeu(~manuel@201.155.193.192) has joined #tryton | ||
2011-08-31 16:49 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2011-08-31 16:52 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-08-31 17:48 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2011-08-31 18:11 <hoRn> any example for generating dynamic columns in a view? trying this - but don't know where to insert the additional columns. my approach: | ||
2011-08-31 18:11 <hoRn> inserting the fields in fields_get | ||
2011-08-31 18:11 <hoRn> inserting the fields in default_get | ||
2011-08-31 18:11 <hoRn> result: the view opens with the additional fields - but read() isn't called. opens with a empty form .... | ||
2011-08-31 18:21 <cedk> hoRn: but is search called? | ||
2011-08-31 18:22 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton | ||
2011-08-31 18:46 <hoRn> cedk: oh - i didnt think in search | ||
2011-08-31 18:49 <hoRn> cedk: no | ||
2011-08-31 18:51 <hoRn> cedk: but i think this is not the right way - what ist the flow generating a view? fields_get - default_get - fields_view_get - read? | ||
2011-08-31 18:52 <cedk> hoRn: don't know it depends of the flow | ||
2011-08-31 19:42 -!- lem0na(~lem0na@95.87.233.210) has joined #tryton | ||
2011-08-31 20:02 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton | ||
2011-08-31 20:11 -!- elbenfreund(~elbenfreu@2001:6f8:1c1b:1a18:221:5cff:fe7e:538b) has joined #tryton | ||
2011-08-31 20:27 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton | ||
2011-08-31 20:27 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton | ||
2011-08-31 21:28 -!- gremly(~gremly@200.106.218.64) has joined #tryton | ||
2011-08-31 21:47 -!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2011-08-31 22:15 -!- cheche(cheche@46.25.80.67) has joined #tryton | ||
2011-08-31 22:53 -!- elbenfreund(~elbenfreu@p54B93C62.dip.t-dialin.net) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!