[Zope-dev] virtual hosting variables [was: Re: Zope 2.7.0 b3 regressions]

Yuppie schubbe at web.de
Wed Dec 3 14:43:23 EST 2003


Evan Simpson wrote:
> Lennart Regebro wrote:
> 
>> I will check this into head this evening, and unless people scream 
>> tomorrow
>> I will check it into the 2.7 branch.
> 
> 
> Please hold off.  I've been meaning to revisit this for a while, and I 
> have a bit of time to do so today and tomorrow.  Also, virtual hosting 
> is properly the domain of the request object, not the object being 
> traversed.  This is why the modified absolute_url() uses 
> REQUEST.physicalPathToURL.
> 

BTW:

I'm missing a REQUEST variable that represents the URL requested by the 
browser.

'PATH_INFO' doesn't show the virtual URL:
'/VirtualHostBase/http/example.org:80/VirtualHostRoot/_vh_test/path/to/object'

'URL' might be changed by __before_publishing_traverse__ or 
__browser_default__:
'http://example.org/test/path/to/object/index_html/view'

So I think it would be great if VHM would add a variable like 
'REQUESTED_URL' (should have a better name) that isn't further modified 
on traversal.
'http://example.org/test/path/to/object'


Just my 2 cents.

Cheers,
	Yuppie





More information about the Zope-Dev mailing list