> I'm confused. I had a programmer working for me that wrote the > following code: > > > > return 0 > > catalog = '' > > try: > > catalog = getattr(context, context.superValues('ZCatalog')[0].id) > > except AttributeError: > > pass > > if catalog: > > return 1 > There is 'return 0' at the beginning, or it is a mistake? If it is 'return 0' then the code below it is never executed...
-- Maciej Wisniowski _______________________________________________ Zope maillist - Zope@zope.org 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 )