display title in the component to avoid relying on view supporting title argument stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Oct 2009 16:21:30 +0200
branchstable
changeset 3750 b7fa3d93640a
parent 3747 9165bd634f90
child 3751 ff404cef5244
display title in the component to avoid relying on view supporting title argument
web/component.py
--- a/web/component.py	Tue Oct 20 13:54:40 2009 +0200
+++ b/web/component.py	Tue Oct 20 16:21:30 2009 +0200
@@ -175,7 +175,8 @@
         if not rset.rowcount:
             return
         self.w(u'<div class="%s">' % self.div_class())
-        self.wview(self.vid, rset, title=self.req._(self.title).capitalize())
+        self.w(u'<h4>%s</h4>\n' % self.req._(self.title).capitalize())
+        self.wview(self.vid, rset)
         self.w(u'</div>')