give widget, non it's name tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 12:36:33 +0200
branchtls-sprint
changeset 1578 73af05429cb4
parent 1577 25b46db3cb81
child 1579 4eea314694e2
give widget, non it's name
entity.py
--- a/entity.py	Thu Apr 30 12:36:14 2009 +0200
+++ b/entity.py	Thu Apr 30 12:36:33 2009 +0200
@@ -128,7 +128,7 @@
                         wdgname = 'TextInput'
                     widget = getattr(formwidgets, wdgname)
                     AutomaticEntityForm.rwidgets.tag_relation(
-                        wdgname, (etype, rtype, '*'), 'subject')
+                        widget, (etype, rtype, '*'), 'subject')
         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)