web/widgets.py
branchtls-sprint
changeset 1325 cf79af56fed0
parent 1309 a4eb20f86cb0
child 1360 13ae1121835e
--- a/web/widgets.py	Thu Apr 09 16:17:16 2009 +0200
+++ b/web/widgets.py	Thu Apr 09 16:25:29 2009 +0200
@@ -839,7 +839,7 @@
         eclass, subjschema = _eclass_eschema(subjschema)
     else:
         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')