doc/book/en/development/datamodel/inheritance.rst
branchstable
changeset 3257 0d953f0b41c4
parent 2539 0f26a76b0348
equal deleted inserted replaced
3256:e39699c44299 3257:0d953f0b41c4
     3 -----------
     3 -----------
     4 
     4 
     5 When describing a data model, entities can inherit from other entities as is
     5 When describing a data model, entities can inherit from other entities as is
     6 common in object-oriented programming.
     6 common in object-oriented programming.
     7 
     7 
       
     8 You have the possibility to adapt some entity attributes, as follow:
       
     9 
       
    10 .. sourcecode:: python
       
    11 
       
    12     from cubes.OTHER_CUBE import entities
       
    13     class EntityExample(entities.EntityExample):
       
    14         def dc_long_title(self):
       
    15             return '%s (%s)' % (self.name, self.description)
       
    16 
       
    17 
     8 XXX WRITME
    18 XXX WRITME