entity.py
branchtls-sprint
changeset 1582 67a86c70e42e
parent 1578 73af05429cb4
child 1721 694f6a50e138
equal deleted inserted replaced
1581:80ee6397c087 1582:67a86c70e42e
   125                         warn('%s widget is deprecated' % wdgname, DeprecationWarning)
   125                         warn('%s widget is deprecated' % wdgname, DeprecationWarning)
   126                         continue
   126                         continue
   127                     if wdgname == 'StringWidget':
   127                     if wdgname == 'StringWidget':
   128                         wdgname = 'TextInput'
   128                         wdgname = 'TextInput'
   129                     widget = getattr(formwidgets, wdgname)
   129                     widget = getattr(formwidgets, wdgname)
       
   130                     assert hasattr(widget, 'render')
   130                     AutomaticEntityForm.rwidgets.tag_relation(
   131                     AutomaticEntityForm.rwidgets.tag_relation(
   131                         widget, (etype, rtype, '*'), 'subject')
   132                         widget, (etype, rtype, '*'), 'subject')
   132         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)
   133         return super(_metaentity, mcs).__new__(mcs, name, bases, classdict)
   133 
   134 
   134 
   135