[ZCM] [ZC] 1308/ 1 Request "Need "actual URL" method"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon May 3 17:07:48 EDT 2004
Issue #1308 Update (Request) "Need "actual URL" method"
Status Pending, Zope/feature+solution critical
To followup, visit:
http://zope.org/Collectors/Zope/1308
==============================================================
= Request - Entry #1 by dchandek on May 3, 2004 5:07 pm
This is related to issue 1252.
Need a way to print the _actual_ URL of a "page".
For example, "The URL of this page is <span tal:replace="request/actual_url">URL</span>.
Here's a possible solution candidate:
request = container.REQUEST
qs = request.QUERY_STRING
if request.has_key('VIRTUAL_URL'):
base_url = request.VIRTUAL_URL
else:
base_url = request.URL
url = base_url + ( qs and ( '?%s' % qs ) )
return url
something like that ...
Thanks,
David
==============================================================
More information about the Zope-Collector-Monitor
mailing list