web/views/__init__.py
branchstable
changeset 3689 deb13e88e037
parent 3145 9b28545de60d
child 3720 5376aaadd16b
child 4212 ab6573088b4a
--- a/web/views/__init__.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/views/__init__.py	Thu Oct 15 20:29:21 2009 +0200
@@ -39,7 +39,7 @@
         if not isinstance(selected[i+1], nodes.VariableRef):
             return True
         # if this is not a final entity
-        if not schema.eschema(etype).is_final():
+        if not schema.eschema(etype).final:
             return True
         # if this is a final entity not linked to the main variable
         var = selected[i+1].variable
@@ -74,7 +74,7 @@
     if nb_rows == 0 :
         return 'noresult'
     # entity result set
-    if not schema.eschema(rset.description[0][0]).is_final():
+    if not schema.eschema(rset.description[0][0]).final:
         if need_table_view(rset, schema):
             return 'table'
         if nb_rows == 1: