[Zope] using getProperty and catching Unauthorized
Florent Guillaume
fg@nuxeo.com
Fri, 25 Oct 2002 20:46:32 +0200
This kind of thing only works if the 'Unauthorized' string is always
interned, which I'm not sure is guaranteed...
I know I've had things like that *not* work in python scripts.
Florent
In article <20021025100215.65bc8b3e.casey@zope.com> you write:
> I think the following should do what you want:
>
> for foo in bar.objectvalues()
> try:
> mo = foo.getProperty('menu_order', None)
> except 'Unauthorized':
> continue
> ..do stuff..