[Zope-dev] closed collector issues 1252 and 1308
Paul Winkler
pw_lists at slinkp.com
Tue Aug 24 11:08:04 EDT 2004
On Tue, Aug 24, 2004 at 09:36:53AM +0100, Chris Withers wrote:
> Simon Eisenmann wrote:
> ><a tal:define="url
> >request/VIRTUAL_URL|string:${request/SERVER_URL}${request/PATH_TRANSLATED}"
> >tal:attributes="href string:${url}#someContent"></a>
> >
> >So having VIRTUAL_URL anytime available would help alot.
>
> Can you have a look at the latest comment added to:
> http://zope.org/Collectors/Zope/1308
>
> It appears there are a LOT of variables already available, one of which
> may do what you want.
That would be nice, but none of them do!
Boiling down the bug reports and this thread:
absolute_url
- containment only, does not include contextual elements from the
client's URL, that's the whole point of this method :-)
absolute_url(relative=1)
- same as absolute_url, and not usable in some VHM situations.
absolute_url_path
- is usable with VHM, but still containment only.
virtual_url_path
- is usable with VHM, but still containment only.
getPhysicalPath
- containment only, not compatible with VHM at all and should NEVER
be used for URLs.
getPhysicalRoot
- returns the zope app root, not relevant to this discussion.
request/URLx
- close, but no cigar: leaves out traverse_subpath elements.
request/VIRTUAL_URL
- includes context and traverse_subpath elements, but doesn't work
if a VHM is not present or is not triggered.
--
Paul Winkler
http://www.slinkp.com
More information about the Zope-Dev
mailing list