michael angelo ruberto wrote:
> 
> in chapter 5 the example Creating a File Library has an error in the sorting
> method.
> 

> ---ERROR--------------------------------------------------------------------
> -------
> 
>         <dtml-in expr="objectValues('File')"
> 
> ~this should be <dtml-in expr="PARENTS[0].objectValues(['File'])"
> ~it doesn't work otherwise.
> 

The reason why it doesn't is because you are using a DTML Document
instead of a DTML Method:

    DTML can help you save time maintaining this library. Create an
    *index_html* DTML Method in the *Files* folder to list all the
                 ^^^^^^^^^^^
    files in the library::

-Michel

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to