common/test/data/entities.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 10 Dec 2008 18:40:19 +0100
changeset 206 9b7085d8fb2e
parent 0 b97547f5f1fa
permissions -rw-r--r--
div.facetBody's height is changed dynamically

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'