web/views/tableview.py
branchstable
changeset 3689 deb13e88e037
parent 3228 7b05b2709439
child 3720 5376aaadd16b
child 3807 8ae53322ffcc
--- a/web/views/tableview.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/views/tableview.py	Thu Oct 15 20:29:21 2009 +0200
@@ -80,7 +80,7 @@
         eschema = self.vreg.schema.eschema
         for i, etype in enumerate(self.rset.description[0]):
             try:
-                if not eschema(etype).is_final():
+                if not eschema(etype).final:
                     return i
             except KeyError: # XXX possible?
                 continue
@@ -208,7 +208,7 @@
             # join, use the default non final subvid)
             if cellvids and colindex in cellvids:
                 column.append_renderer(cellvids[colindex], colindex)
-            elif coltype is not None and self.schema.eschema(coltype).is_final():
+            elif coltype is not None and self.schema.eschema(coltype).final:
                 column.append_renderer(self.finalview, colindex)
             else:
                 column.append_renderer(subvid or 'incontext', colindex)
@@ -237,7 +237,7 @@
         if val is None:
             return u''
         etype = self.rset.description[row][col]
-        if self.schema.eschema(etype).is_final():
+        if self.schema.eschema(etype).final:
             entity, rtype = self.rset.related_entity(row, col)
             if entity is None:
                 return val # remove_html_tags() ?
@@ -263,7 +263,7 @@
         :param cellvid: cell view (defaults to 'outofcontext')
         """
         etype, val = self.rset.description[row][col], self.rset[row][col]
-        if val is not None and not self.schema.eschema(etype).is_final():
+        if val is not None and not self.schema.eschema(etype).final:
             e = self.rset.get_entity(row, col)
             e.view(cellvid or 'outofcontext', w=self.w)
         elif val is None: