comparison 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
comparison
equal deleted inserted replaced
4423:135d4a7dc09d 4424:5ad5753ae311
75 self.depth = depth 75 self.depth = depth
76 self._ = self.macro.request.getText 76 self._ = self.macro.request.getText
77 77
78 self.pagename = self.macro.formatter.page.page_name 78 self.pagename = self.macro.formatter.page.page_name
79 self.print_mode = self.macro.request.action == 'print' 79 self.print_mode = self.macro.request.action == 'print'
80 self.media = self.macro.request.form.get('media', [None])[0] 80 self.media = self.macro.request.values.get('media')
81 self.querystr = self.print_mode and self.PROJECTION or {} 81 self.querystr = self.print_mode and self.PROJECTION or {}
82 82
83 83
84 def dispatch(self): 84 def dispatch(self):
85 """ Return None if in plain print mode (no navigational 85 """ Return None if in plain print mode (no navigational