entity.py
branchtls-sprint
changeset 1582 67a86c70e42e
parent 1578 73af05429cb4
child 1721 694f6a50e138
--- a/entity.py	Thu Apr 30 13:06:10 2009 +0200
+++ b/entity.py	Thu Apr 30 13:06:44 2009 +0200
@@ -127,6 +127,7 @@
                     if wdgname == 'StringWidget':
                         wdgname = 'TextInput'
                     widget = getattr(formwidgets, wdgname)
+                    assert hasattr(widget, 'render')
                     AutomaticEntityForm.rwidgets.tag_relation(
                         widget, (etype, rtype, '*'), 'subject')
         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)