changeset 3342:6003cadc0791

make theme generate a proper action in the dropdown action list form
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 20 Mar 2008 13:57:34 +0100
parents 24690a4045df
children 04548b25e042
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Wed Mar 19 18:57:41 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Thu Mar 20 13:57:34 2008 +0100
@@ -1007,10 +1007,11 @@
             'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '',
             'do_button': _("Do"),
             'baseurl': self.request.getScriptname(),
-            'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name)
+            'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name),
+            'pageurl': self.request.page.url(self.request),
             }
         html = '''
-<form class="actionsmenu" method="POST" action="">
+<form class="actionsmenu" method="POST" action="%(pageurl)s">
 <div>
     <label>%(label)s</label>
     <select name="action"