author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 19 May 2009 10:04:15 +0200 (2009-05-19) | |
branch | stable |
changeset 1856 | b0a6e34ba11b |
parent 1473 | 717dea3362c0 |
child 1977 | 606923dff11b |
permissions | -rw-r--r-- |
from cubicweb.entities import AnyEntity, fetch_config class Societe(AnyEntity): id = 'Societe' fetch_attrs = ('nom',) class Personne(Societe): """customized class forne Person entities""" id = 'Personne' fetch_attrs, fetch_order = fetch_config(['nom', 'prenom']) rest_attr = 'nom' class Note(AnyEntity): id = 'Note'