[Zope] simple var

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 14 Jun 2002 16:17:06 +0400


On Fri, Jun 14, 2002 at 02:08:58PM +0200, Paz wrote:
> <dtml-with "folder1.folder2"><dtml-var index_html></dtml-with>
> 
> This doesn't:
>    <dtml-call "REQUEST.set('sName', 'folder1.folder2')">
>    <dtml-with "_[sName]"><dtml-var index_html></dtml-with>
> 
> Nor does:
>    <dtml-with "_.getitem(sName)"><dtml-var index_html></dtml-with>
> 
> What am I missing?

<dtml-with "folder1.folder2">

   is not equivalent to

<dtml-with "_.getitem('folder1.folder2')">

   it is eq to

<dtml-with "_.getitem('folder1').getitem('folder2')">

Oleg.
-- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.