web/views/workflow.py
branchtls-sprint
changeset 1533 bcd4bfff658b
parent 1511 514e4e53a3c7
child 1721 694f6a50e138
--- a/web/views/workflow.py	Wed Apr 29 09:27:03 2009 +0200
+++ b/web/views/workflow.py	Wed Apr 29 10:29:03 2009 +0200
@@ -25,10 +25,10 @@
 
 _ = unicode
 
-EditBox.rmode.set_rtag('create', 'destination_state', 'subject', 'Transition')
-EditBox.rmode.set_rtag('create', 'allowed_transition', 'object', otype='Transition')
-EditBox.rmode.set_rtag('create', 'destination_state', 'object', otype='State')
-EditBox.rmode.set_rtag('create', 'allowed_transition', 'subject', 'State')
+EditBox.rmode.tag_relation('create', ('Transition', 'destination_state', '*'), 'subject')
+EditBox.rmode.tag_relation('create', ('*', 'allowed_transition', 'Transition'), 'object')
+EditBox.rmode.tag_relation('create', ('*', 'destination_state', 'State'), 'object')
+EditBox.rmode.tag_relation('create', ('State', 'allowed_transition', '*'), 'subject')
 
 
 # IWorkflowable views #########################################################