Phillip J. Eby ha scritto:
At 06:27 PM 5/5/2008 +0200, Manlio Perillo wrote:
Phillip J. Eby ha scritto:
I think that it doesn't accept a relative URL, it accepts an absolute
path.
What do you mean?
environ = {}
setup_testing_defaults(environ)
url = '/a/b/'
That's a relative URL that's
At 06:27 PM 5/5/2008 +0200, Manlio Perillo wrote:
Phillip J. Eby ha scritto:
I think that it doesn't accept a relative URL, it accepts an absolute path.
What do you mean?
environ = {}
setup_testing_defaults(environ)
url = '/a/b/'
That's a relative URL that's also an absolute path. Try
Phillip J. Eby ha scritto:
At 11:03 PM 5/2/2008 +0200, Manlio Perillo wrote:
Hi.
I think that a function like (not tested):
def abs_url(environ, relative_url):
"""Return the absolute url"""
[...]
url += quote(relative_url)
return url
would be an useful addition to the wsgiref.ut
At 11:03 PM 5/2/2008 +0200, Manlio Perillo wrote:
Hi.
I think that a function like (not tested):
def abs_url(environ, relative_url):
"""Return the absolute url"""
[...]
url += quote(relative_url)
return url
would be an useful addition to the wsgiref.util module.
What do you thi