web/views/schema.py
branchtls-sprint
changeset 1511 514e4e53a3c7
parent 1498 2c6eec0b46b9
child 1533 bcd4bfff658b
--- a/web/views/schema.py	Tue Apr 28 16:23:09 2009 +0200
+++ b/web/views/schema.py	Tue Apr 28 16:23:28 2009 +0200
@@ -27,11 +27,11 @@
 uicfg.rinlined.set_rtag(True, 'to_entity', 'subject', 'CWRelation')
 uicfg.rwidgets.set_rtag('StringWidget', 'expression', 'subject', 'RQLExpression')
 
-uicfg.rmode.set_rtag('create', 'state_of', 'object', 'CWEType')
-uicfg.rmode.set_rtag('create', 'transition_of', 'object', 'CWEType')
-uicfg.rmode.set_rtag('create', 'relation_type', 'object', 'CWRType')
-uicfg.rmode.set_rtag('link', 'from_entity', 'object', 'CWEType')
-uicfg.rmode.set_rtag('link', 'to_entity', 'object', 'CWEType')
+uicfg.rmode.set_rtag('create', 'state_of', 'object', otype='CWEType')
+uicfg.rmode.set_rtag('create', 'transition_of', 'object', otype='CWEType')
+uicfg.rmode.set_rtag('create', 'relation_type', 'object', otype='CWRType')
+uicfg.rmode.set_rtag('link', 'from_entity', 'object', otype='CWEType')
+uicfg.rmode.set_rtag('link', 'to_entity', 'object', otype='CWEType')
 
 
 class ViewSchemaAction(action.Action):