entity.py
branchtls-sprint
changeset 1734 e8673144bc74
parent 1721 694f6a50e138
child 1739 78b0819162a8
--- a/entity.py	Mon May 11 17:50:17 2009 +0200
+++ b/entity.py	Mon May 11 18:02:04 2009 +0200
@@ -46,7 +46,6 @@
 
 try:
     from cubicweb.web import formwidgets, uicfg
-    from cubicweb.web.views.editforms import AutomaticEntityForm
 
     def _dispatch_rtags(tags, rtype, role, stype, otype):
         for tag in tags:
@@ -60,6 +59,7 @@
                 raise ValueError(tag)
 
 except ImportError:
+
     _dispatch_rtags = None
 
 def _get_etype(bases, classdict):
@@ -128,7 +128,7 @@
                         wdgname = 'TextInput'
                     widget = getattr(formwidgets, wdgname)
                     assert hasattr(widget, 'render')
-                    AutomaticEntityForm.rwidgets.tag_relation(
+                    uicfg.rwidgets.tag_relation(
                         etype, rtype, '*', widget, tagged='subject')
         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)