changeset 110:69ca6fbbfcc3

added escape=0 to MonthCalendar's Page.url calls imported from: moin--main--1.5--patch-112
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 15 Oct 2005 23:08:24 +0000
parents 3da4fe3841ea
children 88ca17ab3314
files MoinMoin/macro/MonthCalendar.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/MonthCalendar.py	Sat Oct 15 22:49:32 2005 +0000
+++ b/MoinMoin/macro/MonthCalendar.py	Sat Oct 15 23:08:24 2005 +0000
@@ -324,7 +324,7 @@
     if request.mode_getpagelinks:
         return ''
 
-    args_re=re.compile(_args_re_pattern)
+    args_re = re.compile(_args_re_pattern)
     
     currentyear, currentmonth, currentday, h, m, s, wd, yd, ds = request.user.getTime(time.time())
     thispage = formatter.page.page_name
@@ -381,10 +381,10 @@
     p = Page(request, thispage)
     qpagenames = '*'.join(map(wikiutil.quoteWikinameURL, parmpagename))
     querystr = "calparms=%%s,%d,%d,%d,%%d" % (parmyear, parmmonth, parmoffset)
-    prevlink  = p.url(request, querystr % (qpagenames, parmoffset2 - 1))
-    nextlink  = p.url(request, querystr % (qpagenames, parmoffset2 + 1))
-    prevylink = p.url(request, querystr % (qpagenames, parmoffset2 - 12))
-    nextylink = p.url(request, querystr % (qpagenames, parmoffset2 + 12))
+    prevlink  = p.url(request, querystr % (qpagenames, parmoffset2 - 1), 0)
+    nextlink  = p.url(request, querystr % (qpagenames, parmoffset2 + 1), 0)
+    prevylink = p.url(request, querystr % (qpagenames, parmoffset2 - 12), 0)
+    nextylink = p.url(request, querystr % (qpagenames, parmoffset2 + 12), 0)
     prevmonth = formatter.url(1, prevlink, 'cal-link') + '&lt;' + formatter.url(0)
     nextmonth = formatter.url(1, nextlink, 'cal-link') + '&gt;' + formatter.url(0)
     prevyear  = formatter.url(1, prevylink, 'cal-link') + '&lt;&lt;' + formatter.url(0)