On 2015-08-04 15:39, Raimon Esteve wrote: > I review23361002 (party) how to do new API about "property fields". > > IMHO new API NOT help you to create "Property fields". It is not the goal. > Here there are step by step to do it: > > 1- Create field outsite class (m2o) > 2- Create SAME field, but in "PartyConfiguration" class (in this case, function fields) > 3- Create a new class: _ConfigurationValue. > 4- Each Property fied from step 1 and step 2, you need to create a NEW Class. Absolutly WRONG. > Also, those classes need to register on __init_. > > My conclusion: > > 1- Not easy to develop/write Property fields (framework don't help you because need to write a lot of py lines) You write the lines you want to. > 2- If you have a lot of Property fieds in an object, for example, sale.configuration + 24 property fields => in step 4, need to create 24 classes and register in __init__ those 24 classes. I think this step NOT help you to use/develop property fields. Again completly WRONG. You have to THINK about the design and not blindly follow some kind of pattern.
|2015-08-10 00:26:50||ced||set||recipients: + ohuisman, eric, albertca, resteve, pokoli, angel, guillemNaN, unicode2013|
|2015-08-10 00:26:47||ced||link||issue2349 messages|
Showing 10 items. Show all history (warning: this could be VERY long)