[Zope] Unauthorized error with ZCatalog

Dieter Maurer dieter at handshake.de
Wed Mar 14 14:23:53 EDT 2007


Jonathan wrote at 2007-3-14 10:10 -0400:
>I have some "trusted code" (an external method) which is doing a ZCatalog 
>search:
>
>sRes = targetFolder.Catalog({'PrincipiaSearchSource' : 
>self.REQUEST['searchText']})
>
>
>But this is causing the following error:
> ...
>  Module Products.ZCatalog.CatalogBrains, line 86, in getObject

You are using the "getObject" method which performs an internal
security check.

There is also an internal version (I think, "_getObject") which
does not check security and can be used from trusted code.



-- 
Dieter


More information about the Zope mailing list