Why not just do the redirect in the response? Something like this: req = container.REQUEST defaults = ['index.html', 'index.htm'] for default in defaults: if context.hasattr(default): req.RESPONSE.redirect('%s/%s' % (req.absolute_url(), default)) break Sorry, that didn't really answer your question but perhaps it solves the problem... Chris Niclas Kuehne wrote:
Hello everyone:
I am trying to display "index.html" in a folder instead of index_html by default. This is what I put in my "index_html" in the root folder:
<dtml-if index.html> <html> <head> <title>Redirection</title> <meta http-equiv="refresh" content="0; URL=&dtml-absolute_url;/index.html"> </head> <body> </body> </html> </dtml-if>
It used to work just fine with Zope 2.3.3, but after upgrading to Zope 2.6.1 it fails with the message:
Error Type: TypeError Error Value: __call__() takes exactly 2 arguments (1 given)
Can anyone help?
Thank you very much! Nic
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )