[Zope] Test if an object exists in a folder

douwe@oberon.nl douwe@oberon.nl
Wed, 31 Jul 2002 15:03:03 +0200


if anId in folder.objectIds():

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Hans
> Sandsdalen
> Sent: Wednesday, July 31, 2002 2:41 PM
> To: zope@zope.org
> Subject: [Zope] Test if an object exists in a folder
> 
> 
> Hi
> 
> I'm new to zope, and I can't figure out how to check if an object (with
> a spesific name) exists in the current folder.
> 
> Any help?
> 
> -- 
> / hans - http://go.to/tusenfrydveien32
> /        http://www.spacetec.no/~hans/dfood.htm      
> /---------------------------------------------
> / HANS = High Availability No Superman
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>