Re: [Zope] How to find out the full URL

2005-05-12 Thread Hong Yuan
J Cameron Cooper wrote: If you simply print the request object, you'll see everything available. The CGI environment variables are available: http://hoohoo.ncsa.uiuc.edu/cgi/env.html You can use ACTUAL_URL or URL0 to get the full url+path. You can use PATH_TRANSLATED or PATH_INFO to get just

[Zope] How to find out the full URL

2005-05-11 Thread Hong Yuan
I have a page template, say 'products.pt', which takes traverse_subpath[0] as one of the variables, so e.g. the URL: http://myserver/products/100 will actually call products.pt, which get 100 from the URL and displays it in the template. Now my question is how can I get the full URL from

Re: [Zope] How to find out the full URL

2005-05-11 Thread J Cameron Cooper
Hong Yuan wrote: I have a page template, say 'products.pt', which takes traverse_subpath[0] as one of the variables, so e.g. the URL: http://myserver/products/100 will actually call products.pt, which get 100 from the URL and displays it in the template. Now my question is how can I get the

Re: [Zope] How to find out the full URL

2005-05-11 Thread Phillip Hutchings
Ideally, I'd like to get back the whole URL as entered in the browser as a string. From the REQUEST I have to put together URL and QUERY_STRING, and the section (#xxx) part of the url can not be found in REQUEST. Unfortunately the CGI vars don't make provision for the anchor component or