zcatalog/zmscustom

Sebastian Tänzer <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Is it possible to query the zcatalog for a content object that has a  
property field tag (string) with comma-separated tags from a python- 
script?

I tried a query but it doesn't show results. If I query a string in a  
title or another textfield the object shows up. Any idea?

Code:

...

catalog = zms.getCatalog()
items = []

for result in catalog.searchResults({'zcat_text_ger' : str(key)}):
	path = result.getPath()
	ob = result.getCatalogPathObject(path)
	
	item = {}
	item['id'] = str(ob.id)		
	items.append(item)	
	
print items
return printed

...

Mit freundlichen Grüßen
Sebastian Tänzer

tänzermedien e.K.
Agentur für Online-Medien:
Konzept / Design / Programmierung

c/o amcm GmbH
Kekuléstr. 39
53115 Bonn

Tel      0228-33646-23
Fax     0228-33646-13
Mobil  0174-333-7001

E-Mail [email protected]
WWW  http://www.taenzer.me
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.