# HG changeset patch # User Alexandre Richardson # Date 1281616904 -7200 # Node ID a57db3faa913cb675302f1e1c35f9bdd39a269ad # Parent 072f23f6bf83ddd0537238a6f2bcb8d4c8ce2272 [tableview] take care, description may include None (try Any NULL) diff -r 072f23f6bf83 -r a57db3faa913 web/views/tableview.py --- a/web/views/tableview.py Thu Aug 12 11:56:33 2010 +0200 +++ b/web/views/tableview.py Thu Aug 12 14:41:44 2010 +0200 @@ -267,6 +267,8 @@ if val is None: return u'' etype = self.cw_rset.description[row][col] + if etype is None: + return u'' if self._cw.vreg.schema.eschema(etype).final: entity, rtype = self.cw_rset.related_entity(row, col) if entity is None: @@ -292,7 +294,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.vreg.schema.eschema(etype).final: + if val is not None and etype is not None and not self._cw.vreg.schema.eschema(etype).final: self.wview(cellvid or 'outofcontext', self.cw_rset, row=row, col=col) elif val is None: # This is usually caused by a left outer join and in that case,