[Zope] CatalogQuery newbie question
Dieter Maurer
dieter@handshake.de
Sat, 24 May 2003 22:10:32 +0200
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:
>=20
> Catalog(title=3D=E2=80=99spam=E2=80=99, PrincipiaSearchSource=3D=E2=80=
=99spam=E2=80=99)
>=20
> 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