So my problem is that the user that is running the catalog search doesn't have sufficient permissions? That makes sense, though I had just thought there was a problem with my catalog. And unrestrictedSearchResults gets around this problem? Thanks, I'll have to try that. Martijn Pieters wrote:
On 2/17/06, Nicholas Watmough <nickw@deakin.edu.au> wrote:
I've set a proxy for the script so it runs as a Manager.
However, when I set a ZopeScheduler to run this script, I get an error where the ZCatalog doesn't find any results when I search for the PloneArticle instance. Now the article I am searching for is catalogued, so I'm not sure why this is happening.
This may be a problem with ZopeScheduler, or with Plone's catalog. Not sure which.
Any assistance would be appreciated.
The Catalog restricts it's results based on the current user rights, proxy roles do not play in that decision. Use unrestrictedSearchResults instead.
-- Martijn Pieters