Hi All, The DTML Example folder has been updated. I've incorporated the fix below, but the reason that new documents were not showing up is that the page was looking for the wrong 'meta_type' for objects in the subfolder. Up till the last release, documents had a meta_type attribute of 'Document', but now documents either have 'DTML Document' or 'DTML Method' as their meta_type. Tony's problem was that Zope was correctly respecting the meta_type of the 'old' Document objects included with the demo, but any new documents added afresh were being created with the 'DTML Document' or 'DTML Method' meta-types, which were falling through the objectValues 'sieve'. Here's the new version... Cheers, Andy. <!--#in "['Document','Folder', 'DTML Document', 'DTML Method']"--> <!--#with subFolder--> <!--#if "objectValues(_['sequence-item'])"--> <H3>Objects of type <!--#var sequence-item--></H3> <TABLE BORDER=1> <TH>Id</TH><TH>Title</TH> <!--#in "objectValues(_['sequence-item'])"--> <TR><TD><!--#var id--></TD> <TD><!--#var title--></TD></TR> <!--#/in--> </TABLE> <!--#/if--> <!--#/with--> <!--#/in-->
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony McDonald Sent: Tuesday, March 09, 1999 4:46 AM To: Butch Landingin Cc: zope@zope.org Subject: [Zope] Re: Why doesn't this loop over files?
There's a bug in the code, something I noticed when I was playing with the examples too. this is the fixed version:
001 <!--#in "['Document','Folder']"--> 002 <!--#with subFolder--> 003 <!--#if "objectValues(_['sequence-item'])"--> 004 <H3>Objects of type <!--#var sequence-item--></H3> 005 <TABLE BORDER=1> 006 <TH>Id</TH><TH>Title</TH> 007 <!--#in "objectValues(_['sequence-item'])"--> 008 <TR><TD><!--#var id--></TD> 009 <TD><!--#var title--></TD></TR> 010 <!--#/in--> 011 </TABLE> 012 <!--#/if--> 013 <!--#/with--> 014 <!--#/in-->
Butch, Thanks for the reply - but this doesn't work completely either. I can add folders and delete them and the changes made show up in the listing, but adding documents (both documents and methods) has no effect. If I delete the *original* documents created by the installation, they show up as being gone, but even a copy-paste of the original documents doesn't get any new documents/methods etc. to show up.
Am I doing a dumb newbie thing here? (I *do* have a folder called 'subFolder' btw).
many 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
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )