# HG changeset patch # User Sylvain Thénault # Date 1287487030 -7200 # Node ID 6be1279417606a2619fdb4f2a169c9e22b122f94 # Parent 31586c7b63f6c57961f408da4e59a6aac1fc56fa [new components] render_title must write title, not return it diff -r 31586c7b63f6 -r 6be127941760 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')