common/test/data/entities.py
author Celso Flores <jcelsoflores@gmail.com>
Wed, 22 Apr 2009 23:28:56 -0500
changeset 1596 467658e9ca0f
parent 0 b97547f5f1fa
permissions -rw-r--r--
Translation bug fixed

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'