[Zope3-Users] How to use catalog.searchResults
Florian Lindner
mailinglists at xgm.de
Sat May 20 11:04:25 EDT 2006
Hello,
I have a catalog:
(Pdb) catalog
<zope.app.catalog.catalog.Catalog object at 0xb4a3f66c>
with one index:
(Pdb) for i in catalog.keys(): print i
AbbreviationIndex
but I can't find a way to use the search results function:
(Pdb) catalog.searchResults(AbbreviationIndex = "ABC")
*** TypeError: ('two-length tuple expected', 'ABC')
(Pdb) catalog.searchResults(["AbbreviationIndex" ,"ABC"])
*** TypeError: searchResults() takes exactly 1 argument (2 given)
(Pdb) res = catalog.searchResults()
(Pdb) res == None
True
How to use it?
Thanks,
Florian
More information about the Zope3-users
mailing list