web/test/data/schema/testschema.py
changeset 0 b97547f5f1fa
child 1398 5fe84a5f7035
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/test/data/schema/testschema.py	Wed Nov 05 15:52:50 2008 +0100
@@ -0,0 +1,17 @@
+class Salesterm(EntityType):
+    described_by_test = SubjectRelation('File', cardinality='1*', composite='subject')
+    amount = Int(constraints=[IntervalBoundConstraint(0, 100)])
+    
+class tags(RelationDefinition):
+    subject = 'Tag'
+    object = ('BlogEntry', 'EUser')
+
+class checked_by(RelationType):
+    subject = 'BlogEntry'
+    object = 'EUser'
+    cardinality = '?*'
+    permissions = {
+        'add': ('managers',),
+        'read': ('managers', 'users'),
+        'delete': ('managers',),
+        }