[Zope] File objects

Dirk Datzert dirk.datzert@rasselstein-hoesch.de
Sat, 01 Jun 2002 10:47:46 +0200


Hi Max,

the code is correct !

questions:

sure that you have to used a dtml-method (not a dtml-document)?
sure that you have to dtml-method in the same folder ?
sure that you have meta_types = 'File' (not 'ExtFile' or 'EasyFile') in
your folder ?

Regards,
Dirk

mediaweb@linfe.it schrieb:
> 
> Sorry my naive question, i am a zope newbie.
> 
> According to the zope manual, i should get a file list
> of the current folder, using the dtml method:
> 
>   <dtml-var standard_html_header>
>   <h2><dtml-var title_or_id> <dtml-var document_title></h2>
>    <ul>Files
>           <dtml-in expr="objectValues('File')">
>            <li><dtml-var id></li>
>           </dtml-in>
>           </ul>
>   </p>
>   <dtml-var standard_html_footer>
> 
> but i get a blank page, header and footer only are displayed,
> even though there are files in folder
> (a page refresh has been done, to be safe)
> 
> I am using Zope 2.5.1
> 
> So, my first question is: what is wrong in the above code?
> 
> My second question: can one provide a simple code to all objects
>                     included into a folder?
> 
> thank you
> 
> --
> max
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )