changeset 1743:00ffe1ab1c8b

supplementation: minor optimizations
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 14 Jan 2007 00:49:54 +0100
parents 7b419bd3b2cf
children f4ead22f4a0e
files MoinMoin/action/supplementation.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/supplementation.py	Sun Jan 14 00:48:13 2007 +0100
+++ b/MoinMoin/action/supplementation.py	Sun Jan 14 00:49:54 2007 +0100
@@ -1,8 +1,6 @@
 # -*- coding: iso-8859-1 -*-
 """
-    MoinMoin - Action for supplementation pages
-
-    This Action is used to create a supplementation subpage e.g. a Discussion page below a comon page
+    MoinMoin -  This Action is used to create a supplementation subpage e.g. a Discussion page below a comon page
         
     Note:
     derived from the newpage macro by Vito Miliano (vito_moinnewpagewithtemplate@perilith.com) et al
@@ -30,7 +28,6 @@
         if test.exists(): # page is defined -> redirect
             request.http_redirect(url)
         else:  # page will be created from template
-            query = {'action': 'edit', 'backto': newpagename}
-            query['template'] = quoteWikinameURL(sub_page_template)
+            query = {'action': 'edit', 'backto': newpagename, 'template': quoteWikinameURL(sub_page_template)}
             url = Page(request, newpagename).url(request, query, escape=0, relative=False)
             request.http_redirect(url)