IRC logs of #tryton for Friday, 2010-08-13

chat.freenode.net #tryton log beginning Fri Aug 13 00:00:02 CEST 2010
-!- digitalsatori(~tony@116.233.241.200) has joined #tryton01:07
-!- wrst(~quassel@unaffiliated/wrst) has joined #tryton01:36
-!- rasker(~Rehan@89-168-90-131.dynamic.dsl.as9105.com) has left #tryton01:44
-!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has left #tryton01:55
-!- gremly(~gremly@190.26.152.66) has joined #tryton02:06
-!- mr_amit(~amit@117.254.18.44) has joined #tryton07:04
-!- Timitos(~kp@88.217.184.172) has joined #tryton07:05
-!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton07:57
-!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton08:06
-!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton08:17
-!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has joined #tryton09:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:18
-!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton09:40
-!- paepke(~paepke@p4FEB087E.dip0.t-ipconnect.de) has joined #tryton09:47
-!- sharoon(~sharoon@vpn58.its.manchester.ac.uk) has joined #tryton10:40
sharoonHello10:41
sharooncedk: <ping>10:41
cedksharoon: hi10:41
cedksharoon: did you read my email about search clause?10:41
sharooncedk: yep10:41
cedksharoon: what do you think about?10:41
sharooncedk: 1 question: will all future clauses look like (('OR', 'name', '=', 'foo'),('OR', 'company', '=', 'bar))10:42
cedksharoon: no: ('OR', ('name', '=', 'foo'), ('company', '=', 'bar'))10:43
cedksharoon: or: ['OR', ['name', '=', 'foo'], ['company', '=', 'bar']]10:43
sharoonok, got it, with explicit declaration of logic10:43
sharooni think its a good idea10:43
cedksharoon: or: ['OR', ['name', '=', 'foo'], ('company', '=', 'bar')]10:44
cedksharoon: or: ('OR', ['name', '=', 'foo'], ('company', '=', 'bar'))10:44
cedksharoon: etc.10:44
sharooniter(<logic>,iter(<field>, <operator>, <value>))10:44
cedksharoon: yeps10:45
sharooni think its great, but we may not be able to use tuples in the outer container because adding an element to tuple will be a new tuple generation no?10:46
cedkbut I'm not sure if it is out of ambiquity10:46
cedksharoon: yes of course, it is a dev choise10:47
sharooni dont remember, but what do we do for the implicit active field checks in search?10:47
sharoonis it adding a clause or is it direct sql?10:47
cedksharoon: added in clause10:48
sharoonso if the outer container is immutable then we have an issue of handling that10:48
cedksharoon: no because it is added like that: new_domain = ['AND', domain, ('active', '=', true)]10:50
sharoonok, then no issues10:50
sharoonExplicit is better than implicit. - zen of python10:50
sharoonbut again we have to test for the type of the element right?10:52
sharooncan you show a sample of a clause statement with multiple logics?10:52
cedk['AND', ('name', '=', 'foo'), ['OR', ('amount', '>', 100), ('state', '=', 'paid')]]10:53
sharoonso how do we differentiate between a clause (3 part iterable) and a clause with logic (logic, 3 part iterabls)10:55
sharoonit will be the same cost as now right?10:56
cedksharoon: I don't know10:57
cedksharoon: we could test that first element is 'AND' or 'OR'10:58
sharoonif leaf[0] in ['AND', 'OR']:10:59
sharoon   evaluate the inner iterable10:59
sharoonelse:10:59
sharoon   do what you need with regular clause10:59
sharooni think it sounds fine11:02
cedksharoon: I think also11:05
cedksharoon: but I prefer to have many eyes on it before starting11:05
sharooncedk: yes, so far no replies on the mailing list... let me trouble the usual trytonistas ;-)11:06
sharoonTimitos: <ping>11:06
sharoonpaepke: <ping>11:06
sharoonudono: <ping>11:06
Timitoscedk: sharoon: i also think that it is a good idea. but it must be possible to extend domains in wizards for example. this is important for me11:17
paepkesharoon yes?11:17
sharoonpaepke: sorry to trouble, could you confirm if the new proposal looks good to you... looking for your opinion :)11:17
paepkesharoon, ok, let me read.11:18
paepkesharoon, for me it sounds like a good design decission.11:20
sharooncedk: we have had 2 more eyes and all seem to agree!11:20
sharooncedk: sorry 2 more pair of eyes (wrong UOM :/)11:20
cedkTimitos: if you get a tuple, you can convert into list if needed11:22
cedksharoon: yes, I think we can plan it11:22
-!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton11:28
-!- paepke(~paepke@p4FEB087E.dip0.t-ipconnect.de) has left #tryton11:39
-!- evernichon(~evernicho@mailout.fief.ch) has left #tryton11:54
-!- essich(~essich@ip-109-41-186-42.web.vodafone.de) has joined #tryton11:59
-!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton12:35
-!- elver(~elver@213-35-213-182-dsl.trt.estpak.ee) has joined #tryton12:42
-!- eLBati(~elbati@94.165.89.65) has joined #tryton13:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:30
-!- gremly(~gremly@190.26.152.66) has joined #tryton14:34
-!- gremly(~gremly@190.26.152.66) has joined #tryton14:36
-!- zodman(~Miranda@200.76.52.125) has joined #tryton15:35
-!- digitalsatori(~tony@116.233.241.200) has joined #tryton15:46
-!- pepeu(~manuel@201.155.193.192) has joined #tryton16:13
-!- sharoon(~sharoon@vpn9.its.manchester.ac.uk) has joined #tryton16:21
-!- eLBati(~elbati@94.166.38.106) has joined #tryton16:23
-!- sharoon(~sharoon@vpn53.its.manchester.ac.uk) has joined #tryton16:49
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton17:43
-!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has joined #tryton18:17
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton18:27
-!- gremly(~gremly@190.26.152.66) has joined #tryton21:16
-!- sharoon(~sharoon@vpn62.its.manchester.ac.uk) has joined #tryton21:24
-!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has left #tryton22:27

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