[Zope3-Users] How to use catalog.searchResults
Florian Lindner
mailinglists at xgm.de
Sun May 21 12:49:46 EDT 2006
Am Sonntag, 21. Mai 2006 17:58 schrieb mats.nordgren:
> > (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?
>
> Have you tried
>
> catalog.searchResults(idx=('AbbreviationIndex', 'ABC'))
Do you mean "idx" as a placeholder for something or really idx?
it gives:
(Pdb) results = catalog.searchResults(idx=('AbbreviationIndex', 'ABC'))
*** KeyError: 'idx'
Regards,
Florian
More information about the Zope3-users
mailing list