common/test/data/entities.py
author Laure Bourgois <Laure.Bourgois@logilab.fr>
Mon, 01 Dec 2008 14:46:30 +0100
changeset 158 18385a9bbba0
parent 0 b97547f5f1fa
permissions -rw-r--r--
cleaning code

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'