+-------[ Garito ]---------------------- | Andrew Milton escribi?: | >+-------[ David Bear ]---------------------- | >| Can anyone show me code examples of a script that checks for the | >| existences of a named object? | > | >if namedObject in container.objectIds(): | > # object exists | >else: | > # doesn't | > | > | >Checks for named object inside the container that the script is in. | > | > | hasattr(container, 'id')
That will acquire... -- Andrew Milton [EMAIL PROTECTED] _______________________________________________ Zope maillist - [email protected] 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 )
