[Zope] Strange problem about Catalog
Max M
maxm at mxm.dk
Fri Feb 27 01:53:23 EST 2004
Star War wrote:
> I have
> changed it into <dtml-in "Catalog(..., sort_on=...,
> sort_order=...)" size=1>, it just takes 2 seconds. I'm
> not sure if it is normal. Does somebody has a better
> way to get the lastest date?
There is really no need to sort the query. You just need to find the
largest date.
So how about something like:
last_changed = max([
b.bobobase_modification_time
for b in context.Catalog(...,)
])
regards Max M
More information about the Zope
mailing list