Re: [Zope] better than Notes (but where are the views ?)
-----Original Message----- From: chas <panda@skinnyhippo.com> To: zope@zope.org <zope@zope.org> Date: Thursday, September 02, 1999 2:23 PM Subject: [Zope] better than Notes (but where are the views ?)
however, i'm missing sommething. i can create these documents (oops, i mean zclass instances) but how do i get them out of the object db again ? is it possible to create the equivalent of Notes 'views' ? ie. filter all the instances of a class and/or with certain values of given properties ?
This is what ZCatalog comes in. It makes it really easy to grab objects from all over the ZODB and spit them out any way you want. <dtml-in "Catalog({'meta_type': 'Article', 'author': 'Blah'})"> <dtml-if sequence-start> <ul> </dtml-if> <li><dtml-var title></li> <dtml-if sequence-end> </ul> </dtml-if> </dtml-in> This is how the new zope.org beta works. A user can create a news item in their own Member folder and, after approval, this article will bubble up to the main news listing via ZCatalog. Kevin
participants (1)
-
Kevin Dangoor