test/data/entities.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 19 Feb 2009 22:17:22 +0100
branchtls-sprint
changeset 867 14a79faa3a56
parent 744 4da6e0f4df2a
child 1473 717dea3362c0
permissions -rw-r--r--
fix implementation errors import DateTimePicker

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'