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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to