[Zope] Sorting mod.time with dtml-in?
Casey Duncan
cduncan@kaivo.com
Thu, 03 May 2001 08:28:01 -0600
"bak (kedai)" wrote:
>
> On Thursday 03 May 2001 15:11, Kai Hofmann wrote:
> > I thought that I could simply sort by modification time withe the
> > following:
> >
> > <dtml-in expr="subdir.objectValues()" sort="bobo_modification_time">
> >
> > but as it seems I am to stupid to understand Zope/Python, because
> > this does not work :(
> > Any hints?
> >
>
> shouldn't it be
> <dtml-in expr="subdir.objectValues()" sort=bobobase_modification_time>
> ?
>
> hth
> > Thanks
> >
> > Kai
>
Assuming version 2.3, try:
<dtml-in expr="subdir.objectValues()"
sort_expr="bobo_modification_time()">
since it is a method.
hth,
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>