Am Do, den 26.08.2004 schrieb Henny van der Linde um 4:37:
Hi,
I have some trouble querying a catalog.
This DTML works. It get's only the edf objects in the path.
<dtml-in expr="dfcatalog(meta_type='edf',
path='/avin/literatuur/antroposofische_literatuur/artikelendatabase/ms')">
<a href="&dtml-absolute_url;"><dtml-var title></a> </dtml-in>
This Python script doesn't work. It returns ALL the edf objects on the
site.
zcat=container.dfcatalog results=zcat({'query' :
'/avin/literatuur/antroposofische_literatuur/artikelendatabase/ms','meta_typ
e':'edf'})
Why "path" in the dtml example but "query" in the python script example? Different arguments to the same method can produce different results :-)
The dtml is an example I picked from the net. The python script is in the Zope book while using records. However this: zcat=container.dfcatalog results=zcat({'path' : '/avin/literatuur/antroposofische_literatuur/artikelendatabase/ms','meta_typ e':'edf'}) won't work either. Henny .