From 22b4145c79cc8cbdc6a3dcc5e93f6abbc2cf411b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 29 Nov 2011 11:00:58 +0100 Subject: [PATCH] change query paramter name for year/month navigation --- tabellio/agenda/folder.py | 4 ++-- tabellio/agenda/folder_templates/view.pt | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tabellio/agenda/folder.py b/tabellio/agenda/folder.py index cd3e6db..7582569 100644 --- a/tabellio/agenda/folder.py +++ b/tabellio/agenda/folder.py @@ -77,8 +77,8 @@ class View(grok.View, utils.MonthlyView): return self.updated def getYearAndMonthToDisplay(self): - year = self.request.form.get('year') or self.now[0] - month = self.request.form.get('month') or self.now[1] + year = self.request.form.get('navyear') or self.now[0] + month = self.request.form.get('navmonth') or self.now[1] year, month = int(year), int(month) return year, month diff --git a/tabellio/agenda/folder_templates/view.pt b/tabellio/agenda/folder_templates/view.pt index d21c666..750d805 100644 --- a/tabellio/agenda/folder_templates/view.pt +++ b/tabellio/agenda/folder_templates/view.pt @@ -24,7 +24,7 @@
- Calendrier | Liste + Calendrier | Liste
« @@ -55,7 +55,7 @@ » @@ -153,7 +153,7 @@ jq('#tabellio-agenda tbody a').click(
- Calendrier | Liste + Calendrier | Liste
@@ -165,7 +165,7 @@ jq('#tabellio-agenda tbody a').click( class="agenda-calendar-previous" tal:define="prevMonthMonth view/prevMonthMonth; prevMonthYear view/prevMonthYear" - tal:attributes="href string:${viewname}?year=${prevMonthYear}&month=${prevMonthMonth}" + tal:attributes="href string:${viewname}?navyear=${prevMonthYear}&navmonth=${prevMonthMonth}" i18n:attributes="title title_previous_month;">« @@ -180,7 +180,7 @@ jq('#tabellio-agenda tbody a').click( class="agenda-calendar-next" tal:define="nextMonthMonth view/nextMonthMonth; nextMonthYear view/nextMonthYear" - tal:attributes="href string:${viewname}?year=${nextMonthYear}&month=${nextMonthMonth}" + tal:attributes="href string:${viewname}?navyear=${nextMonthYear}&navmonth=${nextMonthMonth}" i18n:attributes="title title_next_month;">»