comparison MoinMoin/macro/NewPage.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents 388204baf00f
children cd6cfc715261
comparison
equal deleted inserted replaced
3039:744c46c1f869 3040:8608b258f8e6
90 else: 90 else:
91 label = _("Create New Page") 91 label = _("Create New Page")
92 92
93 # TODO: better abstract this using the formatter 93 # TODO: better abstract this using the formatter
94 html = [ 94 html = [
95 u'<form class="macro" method="get" action=""><div>', 95 u'<form class="macro" method="get" action="%s/%s"><div>' % (self.request.getScriptname(), wikiutil.quoteWikinameURL(self.formatter.page.page_name)),
96 u'<input type="hidden" name="action" value="newpage">', 96 u'<input type="hidden" name="action" value="newpage">',
97 u'<input type="hidden" name="parent" value="%s">' % wikiutil.escape(parent, 1), 97 u'<input type="hidden" name="parent" value="%s">' % wikiutil.escape(parent, 1),
98 u'<input type="hidden" name="template" value="%s">' % wikiutil.escape(template, 1), 98 u'<input type="hidden" name="template" value="%s">' % wikiutil.escape(template, 1),
99 u'<input type="hidden" name="nametemplate" value="%s">' % wikiutil.escape(nametemplate, 1), 99 u'<input type="hidden" name="nametemplate" value="%s">' % wikiutil.escape(nametemplate, 1),
100 ] 100 ]