diff MoinMoin/action/diff.py @ 1341:f4558797325a

new page.link_to_raw function, use more page.link_to(_raw) instead of lowlevel wikiutil.link_tag, use more query dicts instead of strs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Aug 2006 15:51:08 +0200
parents ecece5db5288
children d1ceb31f3d02
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Sun Aug 20 13:51:01 2006 +0200
+++ b/MoinMoin/action/diff.py	Sun Aug 20 15:51:08 2006 +0200
@@ -143,9 +143,11 @@
             if ignorews:
                 request.write(_('(ignoring whitespace)') + '<br>')
             else:
-                qstr = 'action=diff&ignorews=1'
-                if rev1: qstr = '%s&rev1=%s' % (qstr, rev1)
-                if rev2: qstr = '%s&rev2=%s' % (qstr, rev2)
+                qstr = {'action': 'diff', 'ignorews': '1', }
+                if rev1:
+                    qstr['rev1'] = str(rev1)
+                if rev2:
+                    qstr['rev2'] = str(rev2)
                 request.write(Page(request, pagename).link_to(request,
                     text=_('Ignore changes in the amount of whitespace'),
                     querystr=qstr, rel='nofollow') + '<p>')