author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Thu, 21 May 2009 16:36:47 +0200 | |
changeset 1891 | dd7c1d7715e7 |
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'