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

chat.freenode.net #tryton log beginning Fri Aug 13 00:00:02 CEST 2010
2010-08-13 01:07 -!- digitalsatori(~tony@116.233.241.200) has joined #tryton
2010-08-13 01:36 -!- wrst(~quassel@unaffiliated/wrst) has joined #tryton
2010-08-13 01:44 -!- rasker(~Rehan@89-168-90-131.dynamic.dsl.as9105.com) has left #tryton
2010-08-13 01:55 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has left #tryton
2010-08-13 02:06 -!- gremly(~gremly@190.26.152.66) has joined #tryton
2010-08-13 07:04 -!- mr_amit(~amit@117.254.18.44) has joined #tryton
2010-08-13 07:05 -!- Timitos(~kp@88.217.184.172) has joined #tryton
2010-08-13 07:57 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-08-13 08:06 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-08-13 08:17 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-08-13 09:09 -!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has joined #tryton
2010-08-13 09:18 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-08-13 09:40 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-08-13 09:47 -!- paepke(~paepke@p4FEB087E.dip0.t-ipconnect.de) has joined #tryton
2010-08-13 10:40 -!- sharoon(~sharoon@vpn58.its.manchester.ac.uk) has joined #tryton
2010-08-13 10:41 <sharoon> Hello
2010-08-13 10:41 <sharoon> cedk: <ping>
2010-08-13 10:41 <cedk> sharoon: hi
2010-08-13 10:41 <cedk> sharoon: did you read my email about search clause?
2010-08-13 10:41 <sharoon> cedk: yep
2010-08-13 10:41 <cedk> sharoon: what do you think about?
2010-08-13 10:42 <sharoon> cedk: 1 question: will all future clauses look like (('OR', 'name', '=', 'foo'),('OR', 'company', '=', 'bar))
2010-08-13 10:43 <cedk> sharoon: no: ('OR', ('name', '=', 'foo'), ('company', '=', 'bar'))
2010-08-13 10:43 <cedk> sharoon: or: ['OR', ['name', '=', 'foo'], ['company', '=', 'bar']]
2010-08-13 10:43 <sharoon> ok, got it, with explicit declaration of logic
2010-08-13 10:43 <sharoon> i think its a good idea
2010-08-13 10:44 <cedk> sharoon: or: ['OR', ['name', '=', 'foo'], ('company', '=', 'bar')]
2010-08-13 10:44 <cedk> sharoon: or: ('OR', ['name', '=', 'foo'], ('company', '=', 'bar'))
2010-08-13 10:44 <cedk> sharoon: etc.
2010-08-13 10:44 <sharoon> iter(<logic>,iter(<field>, <operator>, <value>))
2010-08-13 10:45 <cedk> sharoon: yeps
2010-08-13 10:46 <sharoon> i 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?
2010-08-13 10:46 <cedk> but I'm not sure if it is out of ambiquity
2010-08-13 10:47 <cedk> sharoon: yes of course, it is a dev choise
2010-08-13 10:47 <sharoon> i dont remember, but what do we do for the implicit active field checks in search?
2010-08-13 10:47 <sharoon> is it adding a clause or is it direct sql?
2010-08-13 10:48 <cedk> sharoon: added in clause
2010-08-13 10:48 <sharoon> so if the outer container is immutable then we have an issue of handling that
2010-08-13 10:50 <cedk> sharoon: no because it is added like that: new_domain = ['AND', domain, ('active', '=', true)]
2010-08-13 10:50 <sharoon> ok, then no issues
2010-08-13 10:50 <sharoon> Explicit is better than implicit. - zen of python
2010-08-13 10:52 <sharoon> but again we have to test for the type of the element right?
2010-08-13 10:52 <sharoon> can you show a sample of a clause statement with multiple logics?
2010-08-13 10:53 <cedk> ['AND', ('name', '=', 'foo'), ['OR', ('amount', '>', 100), ('state', '=', 'paid')]]
2010-08-13 10:55 <sharoon> so how do we differentiate between a clause (3 part iterable) and a clause with logic (logic, 3 part iterabls)
2010-08-13 10:56 <sharoon> it will be the same cost as now right?
2010-08-13 10:57 <cedk> sharoon: I don't know
2010-08-13 10:58 <cedk> sharoon: we could test that first element is 'AND' or 'OR'
2010-08-13 10:59 <sharoon> if leaf[0] in ['AND', 'OR']:
2010-08-13 10:59 <sharoon> evaluate the inner iterable
2010-08-13 10:59 <sharoon> else:
2010-08-13 10:59 <sharoon> do what you need with regular clause
2010-08-13 11:02 <sharoon> i think it sounds fine
2010-08-13 11:05 <cedk> sharoon: I think also
2010-08-13 11:05 <cedk> sharoon: but I prefer to have many eyes on it before starting
2010-08-13 11:06 <sharoon> cedk: yes, so far no replies on the mailing list... let me trouble the usual trytonistas ;-)
2010-08-13 11:06 <sharoon> Timitos: <ping>
2010-08-13 11:06 <sharoon> paepke: <ping>
2010-08-13 11:06 <sharoon> udono: <ping>
2010-08-13 11:17 <Timitos> cedk: 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 me
2010-08-13 11:17 <paepke> sharoon yes?
2010-08-13 11:17 <sharoon> paepke: sorry to trouble, could you confirm if the new proposal looks good to you... looking for your opinion :)
2010-08-13 11:18 <paepke> sharoon, ok, let me read.
2010-08-13 11:20 <paepke> sharoon, for me it sounds like a good design decission.
2010-08-13 11:20 <sharoon> cedk: we have had 2 more eyes and all seem to agree!
2010-08-13 11:20 <sharoon> cedk: sorry 2 more pair of eyes (wrong UOM :/)
2010-08-13 11:22 <cedk> Timitos: if you get a tuple, you can convert into list if needed
2010-08-13 11:22 <cedk> sharoon: yes, I think we can plan it
2010-08-13 11:28 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton
2010-08-13 11:39 -!- paepke(~paepke@p4FEB087E.dip0.t-ipconnect.de) has left #tryton
2010-08-13 11:54 -!- evernichon(~evernicho@mailout.fief.ch) has left #tryton
2010-08-13 11:59 -!- essich(~essich@ip-109-41-186-42.web.vodafone.de) has joined #tryton
2010-08-13 12:35 -!- evernichon(~evernicho@mailout.fief.ch) has joined #tryton
2010-08-13 12:42 -!- elver(~elver@213-35-213-182-dsl.trt.estpak.ee) has joined #tryton
2010-08-13 13:21 -!- eLBati(~elbati@94.165.89.65) has joined #tryton
2010-08-13 14:30 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-08-13 14:34 -!- gremly(~gremly@190.26.152.66) has joined #tryton
2010-08-13 14:36 -!- gremly(~gremly@190.26.152.66) has joined #tryton
2010-08-13 15:35 -!- zodman(~Miranda@200.76.52.125) has joined #tryton
2010-08-13 15:46 -!- digitalsatori(~tony@116.233.241.200) has joined #tryton
2010-08-13 16:13 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-08-13 16:21 -!- sharoon(~sharoon@vpn9.its.manchester.ac.uk) has joined #tryton
2010-08-13 16:23 -!- eLBati(~elbati@94.166.38.106) has joined #tryton
2010-08-13 16:49 -!- sharoon(~sharoon@vpn53.its.manchester.ac.uk) has joined #tryton
2010-08-13 17:43 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-08-13 18:17 -!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has joined #tryton
2010-08-13 18:27 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-08-13 21:16 -!- gremly(~gremly@190.26.152.66) has joined #tryton
2010-08-13 21:24 -!- sharoon(~sharoon@vpn62.its.manchester.ac.uk) has joined #tryton
2010-08-13 22:27 -!- enlightx(~enlightx@dynamic-adsl-94-34-172-6.clienti.tiscali.it) has left #tryton

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