author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Wed, 03 Jun 2009 19:46:53 +0200 (2009-06-03) | |
branch | 3.1 |
changeset 2030 | 20a4739ea300 |
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'