New custom base module
Posted 01 March 2012 - 08:20 PM
As part of the application I am customizing over zurmo, I am evaluating like to create a module very similar to zurmo to define bases clases, views and controlers that can be reused.
For example define a base class called animal that can be used to define later Mamals, Insects, Reptiles, etc... all of them will have a very similar structure with some basic fields, an image module, a colors module, etc...
Something to the usage of person in the zurmo base module.
Can you give me some guidelines on how to proceed? (for model, view and controllers), or if you have a better idea it'll be welcomed.
Posted 02 March 2012 - 04:07 PM
Regarding views and controllers, we can do something similar as well once we determine what the correct inheritance is conceptually for these modules/models.
Posted 04 March 2012 - 06:19 PM
The idea is create a base class called product to easily extend later any type of product (Style, Fabric, Trim, etc..) and allow the selection on the bill of materials of any type of product.
The idea is very similar for the variation, as of today I am using independant elements for color,size and option but the parent should be the same to easily allow the election on the product.
Posted 04 March 2012 - 06:37 PM
A couple questions and thoughts. You should add in HAS_ONE or HAS_MANY etc. on the diagram on the lines to explain the relationships better. For example, i assume Bill of Materials HAS_MANY products. But does Product HAS_MANY Variations? I think I understand what you are trying to accomplish. I believe it will be simliar to the Activities module. Where you have notes, meetings, tasks extending Activity. Also the way you have BOM HAS_MANY on Products will be like how Activity MANY_MANY is on Items. I can explain this last part more as we get farther.
So next step is to add the relationship information to the diagram.
Posted 04 March 2012 - 08:11 PM
1) The the link between Product and the file manager module states that a product only has one file manager and a file managers only linked to one product.
2) The link between "Bill of Materials" and BOMLink states that a BOMLink always has to be linked to a "Bill of Materials" but we can have a "Bill of Materials" with no BOMLink.
3) The Link between Product and Variation states that a Product can have Zero or many Variations (Colors, Sizes) and a Variation can be references by multiple Products (Same color for different products).
Did you want to have more details?, I can add some labels if required.
Posted 07 March 2012 - 04:26 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users