test/data/entities.py
author sylvain.thenault@logilab.fr
Tue, 14 Apr 2009 18:03:11 +0200
branchtls-sprint
changeset 1343 659d3dc42e68
parent 744 4da6e0f4df2a
child 1473 717dea3362c0
permissions -rw-r--r--
sort on EUser.login/EGroup.name in vocabulary

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'