common/test/data/entities.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 18 Dec 2008 15:41:29 +0100
changeset 226 26eb9d72e722
parent 0 b97547f5f1fa
permissions -rw-r--r--
[javascript] localise variable

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'