fix permission of the condition permission
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 15 Feb 2010 19:37:50 +0100
changeset 4589 cc3ec1423ead
parent 4588 36b700c00d38
child 4590 2172c8c29fe6
fix permission of the condition permission
schemas/workflow.py
--- a/schemas/workflow.py	Mon Feb 15 19:37:35 2010 +0100
+++ b/schemas/workflow.py	Mon Feb 15 19:37:50 2010 +0100
@@ -172,6 +172,7 @@
     }
     inlined = True
 
+
 class workflow_of(RelationType):
     """link a workflow to one or more entity type"""
     __permissions__ = META_RTYPE_PERMS
@@ -186,20 +187,15 @@
     __permissions__ = META_RTYPE_PERMS
     inlined = True
 
-class subworkflow(RelationType):
-    """link a transition to one or more workflow"""
+class destination_state(RelationType):
+    """destination state of a transition"""
     __permissions__ = META_RTYPE_PERMS
     inlined = True
 
-class exit_point(RelationType):
-    """link a transition to one or more workflow"""
+class allowed_transition(RelationType):
+    """allowed transitions from this state"""
     __permissions__ = META_RTYPE_PERMS
 
-class subworkflow_state(RelationType):
-    """link a transition to one or more workflow"""
-    __permissions__ = META_RTYPE_PERMS
-    inlined = True
-
 class initial_state(RelationType):
     """indicate which state should be used by default when an entity using
     states is created
@@ -207,14 +203,25 @@
     __permissions__ = META_RTYPE_PERMS
     inlined = True
 
-class destination_state(RelationType):
-    """destination state of a transition"""
+
+class subworkflow(RelationType):
     __permissions__ = META_RTYPE_PERMS
     inlined = True
 
-class allowed_transition(RelationType):
-    """allowed transitions from this state"""
+class exit_point(RelationType):
+    __permissions__ = META_RTYPE_PERMS
+
+class subworkflow_state(RelationType):
     __permissions__ = META_RTYPE_PERMS
+    inlined = True
+
+
+class condition(RelationType):
+    __permissions__ = META_RTYPE_PERMS
+
+# already defined in base.py
+# class require_group(RelationType):
+#     __permissions__ = META_RTYPE_PERMS
 
 
 # "abstract" relations, set by WorkflowableEntityType ##########################