take care to outer joins stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Oct 2009 16:21:41 +0200
branchstable
changeset 3751 ff404cef5244
parent 3750 b7fa3d93640a
child 3752 4c77a1653374
take care to outer joins
web/views/navigation.py
--- a/web/views/navigation.py	Tue Oct 20 16:21:30 2009 +0200
+++ b/web/views/navigation.py	Tue Oct 20 16:21:41 2009 +0200
@@ -62,6 +62,8 @@
         req = self.req
         if attrname is not None:
             def index_display(row):
+                if not rset[row][col]: # outer join
+                    return u''
                 entity = rset.get_entity(row, col)
                 return entity.printable_value(attrname, format='text/plain')
         elif self.schema.eschema(rset.description[0][col]).final: