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 the path portion.

You can use QUERY_STRING to get the query string.

Thanks for the information. I found out what I need is the variable VIRTURL_URL, which includes the complete URL typed into the browser, including the traverse_subpath components. Alternatively, I think I can use context.REQUEST.URL+'/'.join(context.REQUEST.traverse_subpath).

Homemaster Trading Co., Ltd.
No. 601, Bldg. 41, 288 Shuangyang Rd. (N)
Shanghai 200433, P.R.C.
Tel: +86 21 55056553
Fax: +86 21 55067325

Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to