title may be None
authorsylvain.thenault@logilab.fr
Wed, 25 Feb 2009 15:54:55 +0100
changeset 956 ae7044a06efb
parent 955 3017a858bbc2
child 957 b1f68f725fe9
title may be None
web/views/baseviews.py
--- a/web/views/baseviews.py	Wed Feb 25 15:54:44 2009 +0100
+++ b/web/views/baseviews.py	Wed Feb 25 15:54:55 2009 +0100
@@ -1003,7 +1003,8 @@
         else:
             role = 'object'
         rset = self.rset.get_entity(row, col).related(self.rtype, role)
-        self.w(u'<h1>%s</h1>' % self.req._(self.title).capitalize())
+        if self.title:
+            self.w(u'<h1>%s</h1>' % self.req._(self.title).capitalize())
         self.w(u'<div class="mainInfo">')
         self.wview(self.vid, rset, 'noresult')
         self.w(u'</div>')