IRC logs of #tryton for Monday, 2010-07-19

chat.freenode.net #tryton log beginning Mon Jul 19 00:00:02 CEST 2010
-!- digitalsatori(~tony@116.233.240.151) has joined #tryton01:33
-!- juanfer(~juanfer@201.245.237.114) has joined #tryton02:31
-!- pepeu(~manuel@201.155.193.192) has joined #tryton02:45
-!- yangoon(~mathiasb@p549F3205.dip.t-dialin.net) has joined #tryton05:19
-!- Timitos(~timitos@88.217.184.172) has joined #tryton07:37
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton07:41
-!- mr_amit(~amit@117.254.17.99) has joined #tryton08:06
-!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton08:18
-!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton08:35
-!- ohuisman(~ohuisman@62.58.29.41) has left #tryton08:37
-!- eLBati(~elbati@94.164.25.234) has joined #tryton09:06
-!- eLBati(~elbati@94.166.45.1) has joined #tryton09:38
-!- paepke(~paepke@p5B32CBE0.dip.t-dialin.net) has joined #tryton09:40
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton10:16
-!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton11:04
-!- digitalsatori(~tony@116.233.240.151) has joined #tryton11:14
-!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton12:40
-!- ikks(~ikks@200.118.243.193) has joined #tryton13:43
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton13:49
-!- eLBati(~elbati@94.164.42.221) has joined #tryton13:54
-!- mr_amit(~amit@117.254.29.56) has joined #tryton14:01
-!- tekknokrat(~lila@dslb-188-102-049-029.pools.arcor-ip.net) has joined #tryton14:38
-!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton15:48
-!- Timitos(~timitos@88.217.184.172) has joined #tryton16:02
-!- pheller(~pheller@c1fw236.constantcontact.com) has joined #tryton16:28
phellerHi Cedric16:50
cedkpheller: hi16:50
phellerSo, I've been thinking through this concept of Product Attributes, and then Product Instances, which have Values for these Attributes16:51
phellerThe one thing I'm having a hard time figuring out is how to model the "Value".16:52
phellerFor example, I extend product.product to have a one2many (or many2many) with a new model "Attribute"16:52
phellerthere is a model "Instance", which has a many2one with product, and a one2many with a new model "Value"16:52
cedkpheller: that's ok for me16:52
phellerThe Attribute model has various fields to identify the type of attribute (i.e., a "Char", or a "Text", or a "one2many" with some other model, a domain definition, etc)16:54
phellerBut, since this attribute can be many different things, I'm not sure how exactly to refer to it within the "Value" model.16:54
cedkok I see the issue16:56
phellerI suppose the Value model's "value" field could be a fields.text, and then at runtime, depending on the Attribute type, the contents of this "value" could be cast as an integer when necessary (for relation types, etc)16:57
cedkperhaps you should make different kind of attributes16:57
cedkthat will contain more business logic16:58
phellerHere is my concept code (please understand that I have on typed this out to wrap my head around it, I don't expect this to run as is)16:59
phellerhttp://pastebin.com/TNm6tUc616:59
phellerI will be back after a 15-20 minute meeting.17:00
cedkpheller: I think this is good but only for char value, other kind should be fields added to instance model (with the possibility to hide it depending of the product)17:02
-!- carlos_(~carlos@178.236.118.136) has joined #tryton17:16
-!- digitalsatori(~tony@116.233.240.151) has joined #tryton17:22
-!- paepke(~paepke@p5B32CBE0.dip.t-dialin.net) has joined #tryton17:38
phellerok, I am back.  the meeting went too long!17:58
phellerSo Cedric, are you suggesting I create models like:  Attribute_Char, Value_Char, Attribute_One2Many, Value_One2Many, etc?  And then on the product, have an "Attributes" notebook page which would have a one2many for each of these Attribute types?17:59
cedkpheller: no18:02
cedkpheller: just have this design for char attributes18:03
-!- zodman(~Miranda@67.223.236.231) has joined #tryton18:03
cedkpheller: and add directly fields on instance for other kinds18:03
phellerAh, I see.  The problem with that is enforcing data integrity.  I would implement Tryton so that only a few people can create and edit products, but many people could create or modify instances.18:05
phellerThe easiest way to ensure each Instance has every required attribute for its related Product is if I can define all of the attributes on the Product itself....18:05
-!- zodman(~Miranda@67.223.236.231) has joined #tryton18:09
cedkpheller: yes then you can add a constraint on instance that validate all attributes have a value18:19
-!- carlos(~carlos@178.236.118.136) has joined #tryton18:29
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton18:44
-!- carlos(~carlos@178.236.118.136) has joined #tryton19:07
-!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton19:10
-!- eLBati(~elbati@94.160.95.170) has joined #tryton19:33
-!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton20:11
cedkdba: I have released relatorio20:45
dbacedk: great, thank you21:05
-!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton21:35
-!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has left #tryton21:40
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton22:17
-!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton22:36
-!- pheller(~pheller@c1fw236.constantcontact.com) has left #tryton22:46
-!- gremly(~gremly@201.244.197.189) has joined #tryton23:58

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