diff MoinMoin/action/CopyPage.py @ 4146:3b36f0cfc656

(Re)moved normalizePagename from Request into wikiutil library
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 07 Jun 2008 19:55:27 +0200
parents 9c6900a92a64
children 40acd13fb3d6
line wrap: on
line diff
--- a/MoinMoin/action/CopyPage.py	Fri Jun 06 14:26:55 2008 +0200
+++ b/MoinMoin/action/CopyPage.py	Sat Jun 07 19:55:27 2008 +0200
@@ -47,7 +47,7 @@
         _ = self._
         form = self.form
         newpagename = form.get('newpagename', [u''])[0]
-        newpagename = self.request.normalizePagename(newpagename)
+        newpagename = wikiutil.normalize_pagename(newpagename, self.cfg)
         comment = form.get('comment', [u''])[0]
         comment = wikiutil.clean_input(comment)