[Zope] Replacing index_html with index.html
Niclas Kuehne
nk@nkmail.com
Wed, 2 Apr 2003 00:41:57 -0600
Thank you very much for your response!
I had tried
<dtml-var "_['index.html']">
before, but I get the same error message:
Error Type: TypeError
Error Value: __call__() takes exactly 2 arguments (1 given)
I created a DTML Documnt "foobar" and tried
<dtml-var "_['foobar']">
It works! The idea is right, but there seems to be a problem when
parsing special characters such as "." in an object's id. This seems
to be a new problem/feature in Zope Version 2.6.1, as it works fine
in previous versions (2.3.3).
Any other thoughts on this?
Nic
On April 1, 2003 09:43 pm, Dylan Reinhardt wrote:
> This can be done quite a bit more easily:
>
> Put this in index_html:
>
> <dtml-var "_['index.html']">
>
> Ta da!
>
> If you abosolutely *must* redirect, try this:
>
> <dtml-call "RESPONSE.redirect(URL1 + '/index.html')">
>
> But it's better not to depend on redirection, if you can avoid it.
> It's not 100% supported in all browsers.
>
> HTH,
>
> Dylan
>>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