test/data/entities.py
author sylvain.thenault@logilab.fr
Tue, 05 May 2009 17:11:51 +0200
branchtls-sprint
changeset 1665 14a8f9d434c8
parent 1473 717dea3362c0
child 1977 606923dff11b
permissions -rw-r--r--
more i18nupdate fixes

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'