[Zope3-dev] Resource URL's and virtual hosting

Dmitry Vasiliev lists at hlabs.spb.ru
Fri Jul 15 07:01:11 EDT 2005


Hello!

Seems like resource URL's are wrong for virtual hosted sites.

For example:

1. Create configure.zcml:

<configure xmlns="http://namespaces.zope.org/browser">
     <resourceDirectory
         name="images" directory="images" />
     <page
         for="*"
         name="restest.html"
         permission="zope.Public"
         template="test.pt"
         />
</configure>

2. Create test.pt:

<h1 tal:content="context/++resource++images">Resource path</h1>

3. Create a folder 'test' and make it a site.

Then if you go to 
'http://localhost:8080/test/++vh++http:localhost:8080/test/++/restest.html'
you'll see 'http://localhost:8080/test/@@/images' although expected result is 
'http://localhost:8080/@@/images'.

Is it a bug or maybe I'm wrong?

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru


More information about the Zope3-dev mailing list