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 [EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __________________________________________________ _______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
