[Zope] Updated pages list
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Tue, 06 Aug 2002 12:18:37 +0200
hi,
two ways...
1. the slow one [search for docs changed in the last 7 days]:
context.ZopeFind(
context,
obj_metatypes=['DTML Document'],
obj_expr="this().bobobase_modification_time().greaterThanEqualTo(_.DateTime()-7)",
search_sub=1,
REQUEST=context.REQUEST
)
2. the fast one:
index bobobase_modification_time and query a ZCatalog!
greetings, maik
Glenn Stauffer wrote:
>
>
> I have a zope site for which I want to include a list of updated/new
> pages on the front page of the site. I've been searching for an example
> of how to do this. Can anyone point me toward one? I'm better with
> python than with dtml, so if there is a way to do it with a python
> script, that would be great.
>
> Glenn
>
>
>
>
> _______________________________________________
> 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 )
--
Maik Jablonski __o
www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group
Bielefeld, Germany (_)/(_) www.dzug.org