give a title to timeline generic view stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 20 May 2009 16:35:37 +0200
branchstable
changeset 1884 893119ce3fef
parent 1883 011e13d74cfc
child 1885 c2011d238e98
give a title to timeline generic view
web/views/timeline.py
--- a/web/views/timeline.py	Wed May 20 14:27:35 2009 +0200
+++ b/web/views/timeline.py	Wed May 20 16:35:37 2009 +0200
@@ -16,6 +16,7 @@
 from cubicweb.selectors import implements
 from cubicweb.view import EntityView, StartupView
 
+_ = unicode
 
 class TimelineJsonView(EntityView):
     """generates a json file to feed Timeline.loadJSON()
@@ -101,6 +102,7 @@
 class TimelineView(TimelineViewMixIn, EntityView):
     """builds a cubicweb timeline widget node"""
     id = 'timeline'
+    title = _('timeline')
     __select__ = implements(ICalendarable)
     need_navigation = False
     def call(self, tlunit=None):