[Zope] Why doesn't this loop over files?

Tony McDonald tony.mcdonald@ncl.ac.uk
Mon, 8 Mar 1999 10:04:28 +0000


Hi,
I've d/led the ZopeDemos folder, installed it and started learning 
more about Zope, but there's something happening that I'm not sure 
about.

The 'looping' example doesn't seem to iterate correctly over new 
additions to the folder. The DTML is here:

<!--#in "['Document','Folder']"-->
<!--#if "objectValues(_['sequence-item'])"-->
   <H3>Objects of type <!--#var sequence-item--></H3>
   <TABLE BORDER=1>
   <TH>Id</TH><TH>Title</TH>
   <!--#with subFolder-->
      <!--#in "objectValues(_['sequence-item'])"-->
        <TR><TD><!--#var id--></TD>
        <TD><!--#var title--></TD></TR>
      <!--#/in-->
   <!--#/with-->
   </TABLE>
<!--#/if-->
<!--#/in-->

If I create a new DTML method or document in the folder 'subFolder', 
it isn't recognised. I've even copy/pasted the documents that do work 
into the subFolder with no joy. Curiously, new folders *are* 
recognised.

My Question is: What's preventing Zope from reading *all* the 
Documents in the subFolder?

This would be the core of my first real application in Zope (a 
resource upload/download facility for staff here) so any advice would 
be appreciated.

thanks
tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2