goa/test/data/schema.py
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Thu, 23 Apr 2009 11:58:11 -0700
changeset 1461 023b123ab76b
parent 0 b97547f5f1fa
child 1977 606923dff11b
permissions -rw-r--r--
[doc] Splits initial set-up section in two sections => re-order part III.



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