web/views/tableview.py
changeset 3720 5376aaadd16b
parent 3457 0924d0d08d60
parent 3689 deb13e88e037
child 3729 e4f20b74af51
--- a/web/views/tableview.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/views/tableview.py	Mon Oct 19 15:16:41 2009 +0200
@@ -80,7 +80,7 @@
         eschema = self._cw.vreg.schema.eschema
         for i, etype in enumerate(self.cw_rset.description[0]):
             try:
-                if not eschema(etype).is_final():
+                if not eschema(etype).final:
                     return i
             except KeyError: # XXX possible?
                 continue
@@ -207,7 +207,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._cw.schema.eschema(coltype).is_final():
+            elif coltype is not None and self._cw.schema.eschema(coltype).final:
                 column.append_renderer(self.finalview, colindex)
             else:
                 column.append_renderer(subvid or 'incontext', colindex)
@@ -236,7 +236,7 @@
         if val is None:
             return u''
         etype = self.cw_rset.description[row][col]
-        if self._cw.schema.eschema(etype).is_final():
+        if self._cw.schema.eschema(etype).final:
             entity, rtype = self.cw_rset.related_entity(row, col)
             if entity is None:
                 return val # remove_html_tags() ?
@@ -261,7 +261,7 @@
         :param cellvid: cell view (defaults to 'outofcontext')
         """
         etype, val = self.cw_rset.description[row][col], self.cw_rset[row][col]
-        if val is not None and not self._cw.schema.eschema(etype).is_final():
+        if val is not None and not self._cw.schema.eschema(etype).final:
             e = self.cw_rset.get_entity(row, col)
             e.view(cellvid or 'outofcontext', w=self.w)
         elif val is None: