test/data/entities.py
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 22 May 2009 00:52:18 +0200
branchstable
changeset 1900 8dd4bb69c73d
parent 1473 717dea3362c0
child 1977 606923dff11b
permissions -rw-r--r--
[tests] fix test after eproperties got renamed to cwproperties

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'