Commit c4ae9bc9 authored by's avatar
Browse files

widgets has been dropped from base class

branch : tls-sprint
parent a82f83188695
......@@ -839,7 +839,7 @@ def widget_factory(vreg, subjschema, rschema, objschema, role='subject',
eclass, subjschema = _eclass_eschema(subjschema)
eclass, objschema = _eclass_eschema(objschema)
if eclass is not None and rschema in eclass.widgets:
if eclass is not None and rschema in getattr(eclass, 'widgets', ()):
wcls = WIDGETS[eclass.widgets[rschema]]
elif not rschema.is_final():
card = rschema.rproperty(subjschema, objschema, 'cardinality')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment