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