goa/test/data/schema.py
author Sylvain Thenault <sylvain.thenault@logilab.fr>
Fri, 05 Dec 2008 17:26:39 +0100
changeset 169 0e031b66cb0b
parent 0 b97547f5f1fa
child 1977 606923dff11b
permissions -rw-r--r--
don't systematically init_log, it may breaks client log configuration



class YamsEntity(EntityType):
    if 'Blog' in defined_types and 'Article' in defined_types:
        ambiguous_relation = SubjectRelation(('Blog', 'Article'))
    if 'Blog' in defined_types:
        inlined_relation = SubjectRelation('Blog', cardinality='?*')

class inlined_relation(RelationType):
    inlined = True