[Zope] namespace and PARENTS doubt

Fabio Akita akitaf@sti.com.br
Tue, 25 Jul 2000 18:45:53 -0300


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