Garito wrote:
Checks for named object inside the container that the script is in.
hasattr(container, 'id')

NO!

This is bad for two reasons:

1. It'll acquire id from other places

2. It'll swallow any exceptions found in trying to get hold of 'id', inlcuding ConflictErrors, which is "bad" :-S

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

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

Reply via email to