equal
deleted
inserted
replaced
1 from cubicweb.entities import AnyEntity, fetch_config |
1 from cubicweb.entities import AnyEntity, fetch_config |
2 |
2 |
3 class Personne(AnyEntity): |
3 class Societe(AnyEntity): |
|
4 id = 'Societe' |
|
5 fetch_attrs = ('nom',) |
|
6 |
|
7 class Personne(Societe): |
4 """customized class forne Person entities""" |
8 """customized class forne Person entities""" |
5 id = 'Personne' |
9 id = 'Personne' |
6 fetch_attrs, fetch_order = fetch_config(['nom', 'prenom']) |
10 fetch_attrs, fetch_order = fetch_config(['nom', 'prenom']) |
7 rest_attr = 'nom' |
11 rest_attr = 'nom' |
8 |
12 |
9 |
13 |
10 class Societe(AnyEntity): |
|
11 id = 'Societe' |
|
12 fetch_attrs = ('nom',) |
|
13 |
|
14 class Note(AnyEntity): |
14 class Note(AnyEntity): |
15 id = 'Note' |
15 id = 'Note' |