From: "Yuppie" <[EMAIL PROTECTED]> > 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.... :-) _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )