author | sylvain.thenault@logilab.fr |
Fri, 24 Apr 2009 15:38:11 +0200 | |
branch | tls-sprint |
changeset 1473 | 717dea3362c0 |
parent 744 | 4da6e0f4df2a |
child 1977 | 606923dff11b |
permissions | -rw-r--r-- |
744 | 1 |
from cubicweb.entities import AnyEntity, fetch_config |
2 |
||
1473 | 3 |
class Societe(AnyEntity): |
4 |
id = 'Societe' |
|
5 |
fetch_attrs = ('nom',) |
|
6 |
||
7 |
class Personne(Societe): |
|
744 | 8 |
"""customized class forne Person entities""" |
9 |
id = 'Personne' |
|
10 |
fetch_attrs, fetch_order = fetch_config(['nom', 'prenom']) |
|
11 |
rest_attr = 'nom' |
|
12 |
||
13 |
||
14 |
class Note(AnyEntity): |
|
15 |
id = 'Note' |