equal
deleted
inserted
replaced
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 |