diff --git a/tabellio/agenda/folder.py b/tabellio/agenda/folder.py index 2399f16..2bdacdf 100644 --- a/tabellio/agenda/folder.py +++ b/tabellio/agenda/folder.py @@ -143,6 +143,9 @@ class View(grok.View, utils.MonthlyView): events.sort(lambda x,y: cmp(x.start, y.start)) return events + def todayanchor(self): + return 'd%d-%d-%d' % datetime.datetime.today().timetuple()[:3] + class List(View): grok.context(IAgendaFolder) grok.require('zope2.View') diff --git a/tabellio/agenda/folder_templates/view.pt b/tabellio/agenda/folder_templates/view.pt index 2f1cb74..376c17f 100644 --- a/tabellio/agenda/folder_templates/view.pt +++ b/tabellio/agenda/folder_templates/view.pt @@ -26,7 +26,7 @@

- Calendrier | Liste + Calendrier | Liste