schemas/base.py
changeset 6724 24bf6f181d0e
parent 6622 27402fe6a94a
child 6882 b5e34836f84e
--- a/schemas/base.py	Wed Dec 01 17:09:19 2010 +0100
+++ b/schemas/base.py	Wed Dec 01 17:11:35 2010 +0100
@@ -295,14 +295,19 @@
 class cw_support(RelationDefinition):
     subject = 'CWSource'
     object = ('CWEType', 'CWRType')
+    constraints = [RQLConstraint('NOT O final TRUE')]
 
 class cw_dont_cross(RelationDefinition):
     subject = 'CWSource'
     object = 'CWRType'
+    constraints = [RQLConstraint('NOT O final TRUE'),
+                   RQLConstraint('NOT S cw_may_cross O')]
 
 class cw_may_cross(RelationDefinition):
     subject = 'CWSource'
     object = 'CWRType'
+    constraints = [RQLConstraint('NOT O final TRUE'),
+                   RQLConstraint('NOT S cw_dont_cross O')]
 
 # "abtract" relation types, no definition in cubicweb itself ###################