[Zope] Wrong usage of 'dtml-with' ?

Luc Stepniewski lstep@mail.dotcom.fr
22 Aug 1999 14:04:18 +0200


Well, there's a behaviour I tought I knew its result, but after trying it,
it seems I was wrong. I don't understand what's wrong so here is what I have:

Let's say I have the following folders:

/
|
 -foo            (Folder)
   |
    - index_html (method)
   |
    - bar        (Folder)
       |
        - aaa    (anything)
       |
        - bbb    (anything)
       
In foo Folder's properties, I define a property named 'foldername',
which has 'bar' as content.
In index_html, I put the following:
----------------
<dtml-var standard_html_header>
<dtml-if foldername>
   <dtml-with foldername>
      <dtml-in "objectValues()">
         <dtml-var id><br>
      </dtml-in>
   </dtml-with>
</dtml-if>
<dtml-var standard_html_footer>
----------------
What I tought this would do, was that, if the 'foldername' property is found,
it would display all the objects in the 'foldername' Folder (use of dtml-with)
which should have been 'bar', 'aaa' and 'bbb'.
But all I get is foo's contents ('index_html' and 'foo').

Can anyone explain me what's wrong ?

Thanks,
Luc
-- 
Luc Stepniewski <lstep@mail.dotcom.fr> <http://lstep.free.fr/> ICQ# 6104530
Adequat - Securite, Linux     Public key: <http://lstep.free.fr/pubkey.txt>
Key D93B2D2D fingerprint = 49 00 CC D1 69 03 E2 94  C8 78 ED 3C 75 89 A8 DE