25 Oct
2002
25 Oct
'02
6:46 p.m.
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..