IRC logs of #tryton for Saturday, 2010-08-21

chat.freenode.net #tryton log beginning Sat Aug 21 00:00:02 CEST 2010
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton00:16
-!- zodman(~Miranda@67.223.236.231) has joined #tryton00:25
-!- zodman(43dfece7@gateway/web/freenode/ip.67.223.236.231) has joined #tryton00:35
-!- zodman(43dfece7@foresight/developer/zodman) has joined #tryton00:40
-!- digitalsatori(~tony@116.233.242.63) has joined #tryton01:05
-!- eLBati(~elbati@94.160.80.159) has joined #tryton01:13
-!- sharoon(~sharoon@vpn34.its.manchester.ac.uk) has joined #tryton04:09
-!- gremly(~gremly@190.26.186.242) has joined #tryton04:14
-!- digitalsatori(~tony@116.233.242.63) has joined #tryton04:18
-!- yangoon(~mathiasb@p549F7548.dip.t-dialin.net) has joined #tryton05:19
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton06:24
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton07:31
-!- eLBati(~elbati@94.163.109.105) has joined #tryton09:44
-!- shalabh_OL(~shalabh@117.197.55.126) has joined #tryton10:35
shalabh_OLi need to apply a domain on a field which should check value with a reference field's first part10:39
shalabh_OLplease help how to do it?10:39
cedkshalabh_OL: [(<field name>, <operator>, <value>)]10:42
cedkshalabh_OL: reference field behaves like a Char10:43
shalabh_OLcedk: what will the Eval('<ref field>') return?10:53
-!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton10:56
cedkshalabh_OL: '<model name>,<id>'10:58
shalabh_OLcedk: but it seems to return an Eval object10:59
cedkshalabh_OL: where do you look?11:05
shalabh_OLcedk: if it returns a string then split(',') must work on it, but instead it says 'Eval' object has no attribute 'split'11:08
shalabh_OLplease pardon if i am asking something very stupid, i am still a newbie for python11:08
cedkshalabh_OL: you can not use split in domain11:08
shalabh_OLcedk: ok11:12
shalabh_OLreferring to the domain structure you wrote above11:12
shalabh_OLin my case, my <field name> is 'product.product'11:12
shalabh_OLand <value> from ref field should be something like 'product.product,1'11:12
shalabh_OLwill using 'ilike' in <operator> work?11:12
cedkshalabh_OL: I think your <field name> is not 'product.product'11:14
cedkshalabh_OL: copy/paste with pastebin your code11:19
shalabh_OLcedk: sorry for late reply, i think this much code must do http://pastebin.com/3tw0RkdH11:32
cedkshalabh_OL: it is not possible11:34
shalabh_OLcedk: i think you understood what i intend to do, can you suggest some alternative?11:35
cedkshalabh_OL: you can make a function field that will return the model name part of entity11:36
cedkshalabh_OL: and you must keep it update with on_change_with11:36
cedkshalabh_OL: but I don't understand why you create a model_int_name because you have already model11:37
cedkACTION bbl11:37
shalabh_OLcedk: just experimenting something, i dint wanted to have that field11:38
cedkACTION back12:02
-!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton12:10
-!- sharoon(~sharoon@vpn98.its.manchester.ac.uk) has joined #tryton12:33
cedksharoon: hi12:40
sharooncedk: hi12:40
cedksharoon: I was thinking about your EAV module12:40
sharooncedk: what a coincidence12:40
sharooncedk: i am working on it12:40
sharooncedk: i have some idea change too12:40
cedksharoon: it could be more powerfull if it could work like analytic account then with a one2many list12:41
sharooncedk: i am building a new field called EAV inheriting function field12:41
cedksharoon: if property fields not good enough ?12:41
cedksharoon: is property fields not good enough ?12:41
sharooncedk: but property fields can just store values, not keys (Attributes?)12:42
cedksharoon: what do you name keys ?12:43
sharooncedk: the domain specifc attribute (like `color` but only for `product.product`)12:43
cedksharoon: that is an other part12:44
sharooncedk: ok12:44
sharooncedk: now listening to the idea you were coming up with12:45
sharooncedk: could you explain pls12:45
cedksharoon: did you already look at the analytic account?12:46
sharooncedk: checking (any reason why hg.tryton.org is too slow these days?)12:46
cedksharoon: don't know12:48
cedksharoon: it is not slow from browser12:49
cedksharoon: what is slow for you?12:49
sharooncedk: actually slow from browser12:49
cedksharoon: on http://hg.tryton.org/ ?12:51
sharooncedk: yes12:51
cedksharoon: could you try again?12:51
sharooncedk: tryting12:51
sharooncedk: the module page loaded, but still too slow12:52
sharooncedk: the file listing not loaded yet12:52
cedksharoon: what is the delay for a ping?12:52
sharooncedk: round-trip min/avg/max/stddev = 11.946/13.141/16.646/1.454 ms12:53
cedksharoon: strange12:54
cedksharoon: here I fetch index page in 1.5s12:54
sharooncedk: ok12:55
sharoonfinally opened account.py12:55
cedksharoon: the basis is fields are put in the view dynamicly12:57
sharooncedk: ok12:57
cedksharoon: this allow to have good GUI behavior like required etc.12:57
sharooncedk: ok12:57
cedksharoon: and user doesn't need to learn new GUI12:58
sharooncedk: ok12:58
sharooncedk: you are talking abt this rt? http://hg.tryton.org/hgwebdir.cgi/modules/analytic_account/file/f3b1854d8ea4/account.py#l24812:59
-!- digitalsatori(~tony@116.233.242.63) has joined #tryton12:59
cedksharoon: yes13:00
cedksharoon: and also analytic_accounts_fields_get13:00
sharooncedk: ok13:00
cedksharoon: I think you could develop it in trytond directly13:01
sharooncedk: ok13:01
cedksharoon: should ask on tryton-dev13:01
sharooncedk: could you explain a bit more?13:01
cedksharoon: what?13:01
sharooncedk: how this could be moved to trytond itself?13:02
cedksharoon: you could have an ir.attribute13:04
sharooncedk: ok13:04
cedksharoon: and ir.attribute.value13:04
sharooncedk: ok13:04
cedksharoon: we add a new tag in views: <attributes>13:05
sharoonok13:05
cedksharoon: this tag is expanded in fields_view_get13:05
sharooncedk: got it!13:05
-!- shalabh_OL1(~shalabh@117.197.40.19) has joined #tryton13:08
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton13:47
-!- shalabh_OL2(~shalabh@122.176.50.143) has joined #tryton14:08
sharooncedk: ping14:19
-!- digitalsatori(~tony@116.233.242.63) has joined #tryton14:37
-!- digitalsatori(~tony@116.233.253.200) has joined #tryton14:53
cedksharoon: pong14:53
sharooncedk: http://piratepad.net/IN6WkBfkZN14:54
cedksharoon: options is only for selection14:56
cedksharoon: so I will call it selections14:56
sharooncedk: yes14:56
sharoonok14:56
sharooncedk: fixed14:57
sharooncedk: does it look ok?15:06
cedksharoon: what is ModelEAV ?15:18
sharooncedk: something models which need attributes could inherit or has to be merged into the code of ModelSQL15:19
cedksharoon: ok understod15:19
cedksharoon: don't know what is best15:19
-!- Zoosky(~rooms@doc176-eva113.evard.ch) has joined #tryton15:19
sharooncedk: i thought it might be better to have EAV at an abstraction model since it may not be required for most objects/models15:20
-!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton15:22
-!- digitalsatori(~tony@116.233.253.200) has joined #tryton15:52
cedksharoon: ok15:53
cedksharoon: and it makes the code cleaner15:53
sharooncedk: yep, so if you are happy i can mail to the tryton-dev group?15:54
cedksharoon: ok15:55
-!- shalabh_OL2(~shalabh@122.176.50.143) has left #tryton16:28
-!- digitalsatori(~tony@116.233.253.200) has joined #tryton16:56
-!- enlightx(~enlightx@dynamic-adsl-94-34-207-30.clienti.tiscali.it) has joined #tryton18:08
-!- sharoon(~sharoon@vpn80.its.manchester.ac.uk) has joined #tryton18:14
-!- sharoon(~sharoon@vpn80.its.manchester.ac.uk) has left #tryton18:14
-!- udono(~udono@dynamic-unidsl-85-197-17-55.westend.de) has joined #tryton18:21
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton19:39
-!- gremly(~gremly@190.26.186.242) has joined #tryton20:28
-!- ikks(~ikks@190.158.116.172) has joined #tryton20:34
-!- sharoon(~sharoon@vpn31.its.manchester.ac.uk) has joined #tryton21:40
-!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton22:35
-!- sharoon(~sharoon@vpn31.its.manchester.ac.uk) has joined #tryton23:34

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