test/data/schema.py
changeset 6931 0af44a38fe41
parent 6919 8fd6921f3e7c
child 7153 7df83a6d17c0
equal deleted inserted replaced
6884:6fa712e9dfa5 6931:0af44a38fe41
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """
    18 """
    19 
    19 
    20 """
    20 """
    21 
    21 
    22 from yams.buildobjs import EntityType, String, SubjectRelation, RelationDefinition
    22 from yams.buildobjs import (EntityType, String, SubjectRelation,
       
    23                             RelationDefinition)
       
    24 from cubicweb.schema import  WorkflowableEntityType
    23 
    25 
    24 class Personne(EntityType):
    26 class Personne(EntityType):
    25     nom = String(required=True)
    27     nom = String(required=True)
    26     prenom = String()
    28     prenom = String()
    27     type = String()
    29     type = String()
    46     object = ('Personne', 'Note')
    48     object = ('Personne', 'Note')
    47 
    49 
    48 class evaluee(RelationDefinition):
    50 class evaluee(RelationDefinition):
    49     subject = 'CWUser'
    51     subject = 'CWUser'
    50     object = 'Note'
    52     object = 'Note'
       
    53 
       
    54 
       
    55 class StateFull(WorkflowableEntityType):
       
    56     name = String()
       
    57 
       
    58