comparison MoinMoin/userprefs/oid.py @ 4168:2edbd96f3179

Replaced request.getScriptname() with a werkzeug property
author Florian Krupicka <florian.krupicka@googlemail.com>
date Mon, 16 Jun 2008 12:11:24 +0200
parents 7bfd4232cfb7
children e24aa7996f9f
comparison
equal deleted inserted replaced
4167:e89b74d3a031 4168:2edbd96f3179
148 return self._handle_add() 148 return self._handle_add()
149 149
150 return 150 return
151 151
152 def _make_form(self): 152 def _make_form(self):
153 sn = self.request.getScriptname() 153 sn = self.request.script_root
154 pi = self.request.getPathinfo() 154 pi = self.request.getPathinfo()
155 action = u"%s%s" % (sn, pi) 155 action = u"%s%s" % (sn, pi)
156 _form = html.FORM(action=action) 156 _form = html.FORM(action=action)
157 _form.append(html.INPUT(type="hidden", name="action", value="userprefs")) 157 _form.append(html.INPUT(type="hidden", name="action", value="userprefs"))
158 _form.append(html.INPUT(type="hidden", name="handler", value="oid")) 158 _form.append(html.INPUT(type="hidden", name="handler", value="oid"))