[views] do not display type in title for blogentry
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 04 Nov 2009 12:39:32 +0100
changeset 138 a6692493e5c6
parent 137 f8b8124b7f24
child 139 5bd23a419f06
[views] do not display type in title for blogentry
views/primary.py
--- a/views/primary.py	Tue Nov 03 21:29:29 2009 -0800
+++ b/views/primary.py	Wed Nov 04 12:39:32 2009 +0100
@@ -47,6 +47,9 @@
     __select__ = implements('BlogEntry')
     show_attr_label = False
 
+    def render_entity_title(self, entity):
+        self.w(u'<h1>%s</h1>' % xml_escape(entity.dc_title()))
+
     def render_entity_relations(self, entity):
         rset = entity.related('entry_of', 'subject')
         if rset: