Untested:
dtml-let level1="_.getitem(PARENTS[1], 'folder1')"
level2="_.getitem(level1, 'folder')"
dtml-with level2
...commands..
/dtml-with
/dtml-let
-Original Message-
From: Fabio Akita [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 5:46 PM
To: [EMAIL PROTECTED]
Subject: [Zope] namespace and PARENTS doubt
Hi again
That may be a simple doubt but that´s it:
dtml-with "_.namespace( parameter = 'folder1' )"
dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']"
'commands'
/dtml-with
/dtml-with
The above statement just doesn´t work. The 'parameter' is a
DTML variable in
the global namespace.
But if I try:
dtml-with "PARENTS[1].folder1.folder"
/dtml-with
That will work. What I am trying to do is to execute the "
'commands'." above for lot´s of 'parameter' folders. But the
_['PARENTS[1].' + 'something'] trick doesn´t work. Is there
another way to
make the first statement work?
(maybe I was a bit confusing here, I hope you understand the problem)
Regards
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )