web/widgets.py
branchstable
changeset 3689 deb13e88e037
parent 2996 866a2c135c33
child 4212 ab6573088b4a
--- a/web/widgets.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/widgets.py	Thu Oct 15 20:29:21 2009 +0200
@@ -193,7 +193,7 @@
         if the field is monovalued (like all attribute fields, but not all non
         final relation fields
         """
-        if self.rschema.is_final():
+        if self.rschema.final:
             return entity.attribute_values(self.name)
         elif entity.has_eid():
             return [row[0] for row in entity.related(self.name, self.role)]
@@ -844,7 +844,7 @@
         eclass, objschema = _eclass_eschema(objschema)
     if eclass is not None and rschema in getattr(eclass, 'widgets', ()):
         wcls = WIDGETS[eclass.widgets[rschema]]
-    elif not rschema.is_final():
+    elif not rschema.final:
         card = rschema.rproperty(subjschema, objschema, 'cardinality')
         if role == 'object':
             multiple = card[1] in '+*'