[Zope] proxy role for an external method
Chris Withers
chris at simplistix.co.uk
Tue Oct 11 02:29:27 EDT 2005
Reinoud van Leeuwen wrote:
> On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote:
>
>>Are you using CMF/Plone?
>
>
> yes. the main part of the function is:
>
> for brain in self.portal_catalog(portal_type='User',
> SearchableText=SearchableText):
> user = brain.getObject()
> if user is None:
> continue
> results.append(getUserInfo(user))
>
> This works in a pyhton script but not in an external one
At this point I'd recommend my SainBrains product:
http://www.simplistix.co.uk/software/zope/sanebrains
Then, change your user = line to:
user = brain._unrestrictedGetObject()
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list