redirect calls str
David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Mon, 21 Feb 2005 14:59:02 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-3--287760400
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
x-unix-mode=0664;
name="niceredirect.txt"
Content-Disposition: attachment;
filename=niceredirect.txt
Make redirect call str() on the location, so that calls from ptl templates don't
need to.
Changed:
publish.py
Here is the diff:
Index: publish.py
===================================================================
--- publish.py (revision 26201)
+++ publish.py (working copy)
@@ -319,7 +319,7 @@
not honor the redirect).
"""
request = _publisher.get_request()
- location = urlparse.urljoin(request.get_url(), location)
+ location = urlparse.urljoin(request.get_url(), str(location))
return request.response.redirect(location, permanent)
def get_session():
--Apple-Mail-3--287760400--