24 May
2003
24 May
'03
8:10 p.m.
Stephan Goeldi wrote at 2003-5-24 10:42 +0200:
This must be a newbie question:
It's a question of someone that did not read the available documentation carefully...
I installed ZCatalogQuery to search a Catalog for a certain word in title OR PrincipiaSearchSource. The syntax is told to be:
Catalog(title=’spam’, PrincipiaSearchSource=’spam’)
I don't know how the word 'spam' in this case is replaced by the text, entered in a search form.
You have two options: * Use Python's "%" (format) operator (--> Python Library reference) It allows you to replace format indicators in format strings by dynamic content. * "ZCatalogQuery" provides a way to pass in parameters to the query (--> "ZCatalogQuery" documentation). Dieter