[views] ticket #344283, render_entity_title for Blog does not display entity type anymore
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Tue, 03 Nov 2009 09:44:56 -0800
changeset 136 fd6633078fc5
parent 135 708cbacc4d77
child 137 f8b8124b7f24
[views] ticket #344283, render_entity_title for Blog does not display entity type anymore
views.py
--- a/views.py	Tue Oct 20 17:44:39 2009 +0200
+++ b/views.py	Tue Nov 03 09:44:56 2009 -0800
@@ -45,6 +45,8 @@
         self.wview('adaptedlist', rset, 'null')
         self.w(strio.getvalue())
 
+    def render_entity_title(self, entity):
+        self.w(u'<h1>%s</h1>' % xml_escape(entity.dc_title()))
 
 class BlogEntryPrimaryView(primary.PrimaryView):
     __select__ = implements('BlogEntry')