# HG changeset patch # User Sylvain Thénault # Date 1266259070 -3600 # Node ID cc3ec1423ead687ca1a0b97e675ebea1afbdc5bd # Parent 36b700c00d38a271a356b9706fe413153fb42372 fix permission of the condition permission diff -r 36b700c00d38 -r cc3ec1423ead 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 ##########################