author | sylvain.thenault@logilab.fr |
Fri, 27 Mar 2009 12:31:42 +0100 (2009-03-27) | |
branch | tls-sprint |
changeset 1181 | 620ec8e6ae19 |
parent 744 | 4da6e0f4df2a |
child 1473 | 717dea3362c0 |
permissions | -rw-r--r-- |
from cubicweb.entities import AnyEntity, fetch_config class Personne(AnyEntity): """customized class forne Person entities""" id = 'Personne' fetch_attrs, fetch_order = fetch_config(['nom', 'prenom']) rest_attr = 'nom' class Societe(AnyEntity): id = 'Societe' fetch_attrs = ('nom',) class Note(AnyEntity): id = 'Note'