14 Mar
2007
14 Mar
'07
6:23 p.m.
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