chat.freenode.net #tryton log beginning Mon Jul 19 00:00:02 CEST 2010 | ||
2010-07-19 01:33 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton | ||
2010-07-19 02:31 -!- juanfer(~juanfer@201.245.237.114) has joined #tryton | ||
2010-07-19 02:45 -!- pepeu(~manuel@201.155.193.192) has joined #tryton | ||
2010-07-19 05:19 -!- yangoon(~mathiasb@p549F3205.dip.t-dialin.net) has joined #tryton | ||
2010-07-19 07:37 -!- Timitos(~timitos@88.217.184.172) has joined #tryton | ||
2010-07-19 07:41 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-07-19 08:06 -!- mr_amit(~amit@117.254.17.99) has joined #tryton | ||
2010-07-19 08:18 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton | ||
2010-07-19 08:35 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton | ||
2010-07-19 08:37 -!- ohuisman(~ohuisman@62.58.29.41) has left #tryton | ||
2010-07-19 09:06 -!- eLBati(~elbati@94.164.25.234) has joined #tryton | ||
2010-07-19 09:38 -!- eLBati(~elbati@94.166.45.1) has joined #tryton | ||
2010-07-19 09:40 -!- paepke(~paepke@p5B32CBE0.dip.t-dialin.net) has joined #tryton | ||
2010-07-19 10:16 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton | ||
2010-07-19 11:04 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton | ||
2010-07-19 11:14 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton | ||
2010-07-19 12:40 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton | ||
2010-07-19 13:43 -!- ikks(~ikks@200.118.243.193) has joined #tryton | ||
2010-07-19 13:49 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-07-19 13:54 -!- eLBati(~elbati@94.164.42.221) has joined #tryton | ||
2010-07-19 14:01 -!- mr_amit(~amit@117.254.29.56) has joined #tryton | ||
2010-07-19 14:38 -!- tekknokrat(~lila@dslb-188-102-049-029.pools.arcor-ip.net) has joined #tryton | ||
2010-07-19 15:48 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton | ||
2010-07-19 16:02 -!- Timitos(~timitos@88.217.184.172) has joined #tryton | ||
2010-07-19 16:28 -!- pheller(~pheller@c1fw236.constantcontact.com) has joined #tryton | ||
2010-07-19 16:50 <pheller> Hi Cedric | ||
2010-07-19 16:50 <cedk> pheller: hi | ||
2010-07-19 16:51 <pheller> So, I've been thinking through this concept of Product Attributes, and then Product Instances, which have Values for these Attributes | ||
2010-07-19 16:52 <pheller> The one thing I'm having a hard time figuring out is how to model the "Value". | ||
2010-07-19 16:52 <pheller> For example, I extend product.product to have a one2many (or many2many) with a new model "Attribute" | ||
2010-07-19 16:52 <pheller> there is a model "Instance", which has a many2one with product, and a one2many with a new model "Value" | ||
2010-07-19 16:52 <cedk> pheller: that's ok for me | ||
2010-07-19 16:54 <pheller> The 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) | ||
2010-07-19 16:54 <pheller> But, since this attribute can be many different things, I'm not sure how exactly to refer to it within the "Value" model. | ||
2010-07-19 16:56 <cedk> ok I see the issue | ||
2010-07-19 16:57 <pheller> I 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) | ||
2010-07-19 16:57 <cedk> perhaps you should make different kind of attributes | ||
2010-07-19 16:58 <cedk> that will contain more business logic | ||
2010-07-19 16:59 <pheller> Here 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) | ||
2010-07-19 16:59 <pheller> http://pastebin.com/TNm6tUc6 | ||
2010-07-19 17:00 <pheller> I will be back after a 15-20 minute meeting. | ||
2010-07-19 17:02 <cedk> pheller: 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) | ||
2010-07-19 17:16 -!- carlos_(~carlos@178.236.118.136) has joined #tryton | ||
2010-07-19 17:22 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton | ||
2010-07-19 17:38 -!- paepke(~paepke@p5B32CBE0.dip.t-dialin.net) has joined #tryton | ||
2010-07-19 17:58 <pheller> ok, I am back. the meeting went too long! | ||
2010-07-19 17:59 <pheller> So 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? | ||
2010-07-19 18:02 <cedk> pheller: no | ||
2010-07-19 18:03 <cedk> pheller: just have this design for char attributes | ||
2010-07-19 18:03 -!- zodman(~Miranda@67.223.236.231) has joined #tryton | ||
2010-07-19 18:03 <cedk> pheller: and add directly fields on instance for other kinds | ||
2010-07-19 18:05 <pheller> Ah, 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. | ||
2010-07-19 18:05 <pheller> The 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.... | ||
2010-07-19 18:09 -!- zodman(~Miranda@67.223.236.231) has joined #tryton | ||
2010-07-19 18:19 <cedk> pheller: yes then you can add a constraint on instance that validate all attributes have a value | ||
2010-07-19 18:29 -!- carlos(~carlos@178.236.118.136) has joined #tryton | ||
2010-07-19 18:44 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton | ||
2010-07-19 19:07 -!- carlos(~carlos@178.236.118.136) has joined #tryton | ||
2010-07-19 19:10 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton | ||
2010-07-19 19:33 -!- eLBati(~elbati@94.160.95.170) has joined #tryton | ||
2010-07-19 20:11 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton | ||
2010-07-19 20:45 <cedk> dba: I have released relatorio | ||
2010-07-19 21:05 <dba> cedk: great, thank you | ||
2010-07-19 21:35 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2010-07-19 21:40 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has left #tryton | ||
2010-07-19 22:17 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2010-07-19 22:36 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton | ||
2010-07-19 22:46 -!- pheller(~pheller@c1fw236.constantcontact.com) has left #tryton | ||
2010-07-19 23:58 -!- gremly(~gremly@201.244.197.189) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!