author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Tue, 20 Jan 2009 17:08:33 +0100 (2009-01-20) | |
changeset 449 | 38bf75d3c600 |
parent 0 | b97547f5f1fa |
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 AnotherNote(AnyEntity): id = 'AnotherNote'