common/test/data/entities.py
author sylvain.thenault@logilab.fr
Tue, 17 Feb 2009 22:45:55 +0100
branchtls-sprint
changeset 708 b4728112625f
parent 0 b97547f5f1fa
permissions -rw-r--r--
move utils from cw.common to cw

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'