diff MoinMoin/macro/Include.py @ 1009:714b9f7ce9e4

use request.action
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Jul 2006 16:26:49 +0200
parents ed7febba892b
children fc75423e26a8
line wrap: on
line diff
--- a/MoinMoin/macro/Include.py	Sat Jul 22 16:06:31 2006 +0200
+++ b/MoinMoin/macro/Include.py	Sat Jul 22 16:26:49 2006 +0200
@@ -65,7 +65,7 @@
 
     # prepare including page
     result = []
-    print_mode = macro.form.has_key('action') and macro.form['action'][0] in ("print", "format")
+    print_mode = request.action in ("print", "format")
     this_page = macro.formatter.page
     if not hasattr(this_page, '_macroInclude_pagelist'):
         this_page._macroInclude_pagelist = {}