[Zope] What wrong?
Leonardo Fernandes
ra019837@ic.unicamp.br
Tue, 18 Mar 2003 11:58:24 -0300
The solution below solved my problem.
Thanks for the help everyone.
Jason Bush wrote:
> <dtml-let est="'./'+estagio+'/aula'">
> <dtml-call "RESPONSE.redirect(est)">
> </dtml-let>
>
> I tried some similar code and received the same error
> when I removed the _[...] from the variable it worked however.
>
> I hope it helps you.
>
> Leonardo Fernandes wrote:
>
>> Hi,
>>
>> Please, whats wrong with this code?
>>
>> <dtml-let est="_['\'./'+estagio+'/aula\'']">
>> <dtml-call "RESPONSE.redirect(est)">
>> </dtml-let>
>>
>> estagio is a valid variable (containing the value Aul00) and Aul00 is
>> a Folder but I get the following error:
>>
>> Error type - KeyError
>> Error value - './Aul00/aula'
>>
>> How would be the correct way to perform that redirection?
>>
>> Thank you very much.
>>
>>
>> _______________________________________________
>> 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 )
>>
>