test/data/entities.py
author sylvain.thenault@logilab.fr
Wed, 08 Apr 2009 11:29:28 +0200
branchtls-sprint
changeset 1282 272d8ec6f308
parent 744 4da6e0f4df2a
child 1473 717dea3362c0
permissions -rw-r--r--
* print vreg content once fully initialized (require move of print code from vregistry to cwvreg) * new vreg_initialization_completed callback on appobjects, called once the vregistry is fully initialized

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'