[new components] render_title must write title, not return it
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 Oct 2010 13:17:10 +0200
changeset 6547 6be127941760
parent 6546 31586c7b63f6
child 6548 fd36c1049eed
[new components] render_title must write title, not return it
web/component.py
--- a/web/component.py	Tue Oct 19 13:16:20 2010 +0200
+++ b/web/component.py	Tue Oct 19 13:17:10 2010 +0200
@@ -411,8 +411,8 @@
     subclasses should define at least id, rtype and target class attributes.
     """
     def render_title(self, w):
-        return display_name(self._cw, self.rtype, role(self),
-                            context=self.entity.__regid__)
+        w(display_name(self._cw, self.rtype, role(self),
+                       context=self.entity.__regid__))
 
     def render_body(self, w):
         self._cw.add_js('cubicweb.ajax.js')