branch | oldstable |
changeset 4985 | 02b52bf9f5f8 |
parent 4563 | c25da7573ebd |
parent 4982 | 4247066fd3de |
child 5422 | 0865e1e90674 |
4563:c25da7573ebd | 4985:02b52bf9f5f8 |
---|---|
1 |
|
2 Inheritance |
|
3 ----------- |
|
4 |
|
5 When describing a data model, entities can inherit from other entities as is |
|
6 common in object-oriented programming. |
|
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 |
|
18 XXX WRITME |