[Zope] Reverse-resolve hex instance numbers in traceback?

Dylan Reinhardt zope at dylanreinhardt.com
Tue Oct 7 11:08:13 EDT 2003


On Tue, 2003-10-07 at 08:06, Dylan Reinhardt wrote:
> A better way might be something some Python like this:
> 
> -----------
> for obj in container.objectValues(my_obj_type)
>     if hasattr(obj, attribute_name):
>       print obj['id']
> return printed
> -----------
> 

And you'll want to put a colon at the end of that first line.  :-)

Dylan





More information about the Zope mailing list