entity.py
branchtls-sprint
changeset 1721 694f6a50e138
parent 1582 67a86c70e42e
child 1734 e8673144bc74
--- a/entity.py	Mon May 11 11:01:40 2009 +0200
+++ b/entity.py	Mon May 11 11:20:38 2009 +0200
@@ -51,11 +51,11 @@
     def _dispatch_rtags(tags, rtype, role, stype, otype):
         for tag in tags:
             if tag in _MODE_TAGS:
-                uicfg.rmode.tag_relation(tag, (stype, rtype, otype), role)
+                uicfg.rmode.tag_relation(stype, rtype, otype, tag, role)
             elif tag in _CATEGORY_TAGS:
-                uicfg.rcategories.tag_relation(tag, (stype, rtype, otype), role)
+                uicfg.rcategories.tag_relation(stype, rtype, otype, tag, role)
             elif tag == 'inlineview':
-                uicfg.rinlined.tag_relation(True, (stype, rtype, otype), role)
+                uicfg.rinlined.tag_relation(stype, rtype, otype, True, role)
             else:
                 raise ValueError(tag)
 
@@ -129,7 +129,7 @@
                     widget = getattr(formwidgets, wdgname)
                     assert hasattr(widget, 'render')
                     AutomaticEntityForm.rwidgets.tag_relation(
-                        widget, (etype, rtype, '*'), 'subject')
+                        etype, rtype, '*', widget, tagged='subject')
         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)