On Tue, Oct 11, 2005 at 07:29:27AM +0100, Chris Withers wrote:
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()
That is exactly what I need! Thanks! I'll clean up the code and paste it here this afternoon so a working solution ends up in the archives. (I hate it to find discussions on google without the final solution to the problem ";-) -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________