[Zope-dev] Re: Zope 2.7.0 b3 regressions
Lennart Regebro
regebro at nuxeo.com
Wed Dec 3 12:54:47 EST 2003
From: "Yuppie" <schubbe at web.de>
> Quick?
Yeah, yeah. I was fast once I actually did it. :-)
> Please be careful with method names that might already be in use in some
> products. Google says Silva uses a getVirtualRoot() method.
And EasyPublisher uses all of these already.
>Why not using REQUEST variables?
Because it would be wrong, ugly, inconsistent with GetPhysicalPath and/or
complicated to implement? :-)
To explain them I'll use Evans examples (without testing so I could be
wrong):
http://localhost:8080/temp_folder/test
getVirtualRoot(): ('',)
getVirtualPath(): ('', 'temp_folder', 'test')
getPhysicalPath(): ('', 'temp_folder', 'test')
http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/test
getVirtualRoot(): ('',)
getVirtualPath(): ('', 'temp_folder', 'test')
getPhysicalPath(): ('', 'temp_folder', 'test')
http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/VirtualHostRoot/test
getVirtualRoot(): ('', 'temp_folder')
getVirtualPath(): ('', 'test')
getPhysicalPath(): ('', 'temp_folder', 'test')
http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/VirtualHostRoot/_vh_foo/test
getVirtualRoot(): ('', 'temp_folder')
getVirtualPath(): ('', 'test')
getPhysicalPath(): ('', 'temp_folder', 'test')
I think.... :-)
More information about the Zope-Dev
mailing list