common/test/data/entities.py
author Sylvain <syt@logilab.fr>
Fri, 19 Dec 2008 17:04:35 +0100
changeset 243 c718f6495ace
parent 0 b97547f5f1fa
permissions -rw-r--r--
Added tag cubicweb-version-2_99_6 for changeset 5b58fd1aba50

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'