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
_______________________________________________
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 )