Commit 72fc04e1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: do not build url by joing strings

parent 5f2a99a9
from urlparse import urljoin
portal = context.getPortalObject() portal = context.getPortalObject()
person = portal.portal_membership.getAuthenticatedMember().getUserValue() person = portal.portal_membership.getAuthenticatedMember().getUserValue()
...@@ -26,7 +28,7 @@ if slapos_master_web_url is None: ...@@ -26,7 +28,7 @@ if slapos_master_web_url is None:
# XXX this url is HARDCODED on the client side # XXX this url is HARDCODED on the client side
# and so, can not be modified # and so, can not be modified
request_url = "%s/%s" % (slapos_master_web_url, "Person_requestComputer") request_url = urljoin(slapos_master_web_url, "Person_requestComputer")
person.requestToken(request_url=request_url) person.requestToken(request_url=request_url)
access_token_id = context.REQUEST.get("token") access_token_id = context.REQUEST.get("token")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment