diff MoinMoin/macro/Navigation.py @ 4424:5ad5753ae311

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Nov 2008 22:20:21 +0100
parents 21d9d7529304
children
line wrap: on
line diff
--- a/MoinMoin/macro/Navigation.py	Sun Nov 16 16:50:56 2008 +0100
+++ b/MoinMoin/macro/Navigation.py	Sun Nov 16 22:20:21 2008 +0100
@@ -77,7 +77,7 @@
 
         self.pagename = self.macro.formatter.page.page_name
         self.print_mode = self.macro.request.action == 'print'
-        self.media = self.macro.request.form.get('media', [None])[0]
+        self.media = self.macro.request.values.get('media')
         self.querystr = self.print_mode and self.PROJECTION or {}