changeset 2422:2142eea37033

fix userpreferences links
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 19 Jul 2007 21:17:22 +0200
parents 059054049961
children 76bf8b6b3061
files MoinMoin/action/userprefs.py MoinMoin/userprefs/__init__.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/userprefs.py	Thu Jul 19 20:17:35 2007 +0200
+++ b/MoinMoin/action/userprefs.py	Thu Jul 19 21:17:22 2007 +0200
@@ -51,7 +51,8 @@
         obj = cls(request)
         if not obj.allowed():
             continue
-        url = request.page.url(request, {'action': 'userprefs', 'sub': sub})
+        url = request.page.url(request, {'action': 'userprefs', 'sub': sub},
+                               relative=False)
         lnk = html.LI().append(html.A(href=url).append(html.Text(obj.title)))
         items.append(lnk)
     return unicode(ret)
--- a/MoinMoin/userprefs/__init__.py	Thu Jul 19 20:17:35 2007 +0200
+++ b/MoinMoin/userprefs/__init__.py	Thu Jul 19 21:17:22 2007 +0200
@@ -72,7 +72,7 @@
             preferences forms and then call make_row(). See
             existing plugins, e.g. changepass.py.
         '''
-        action = self.request.page.url(self.request)
+        action = self.request.page.url(self.request, relative=False)
         _form = html.FORM(action=action)
         _form.append(html.INPUT(type="hidden", name="action", value="userprefs"))
         _form.append(html.INPUT(type="hidden", name="handler", value=self.name))