[Zope] How to check for a folder's existence and create it if it doesn'texist?

Chris Muldrow muldrow@mac.com
Mon, 05 Mar 2001 10:40:01 -0500


> From: "Randall F. Kern" <randy@spoke.net>
> Date: Wed, 28 Feb 2001 12:11:00 -0800
> To: "Paul Zwarts" <paul.zwarts@oratrix.com>, "Chris Muldrow" <muldrow@mac.com>
> Cc: <zope@zope.org>
> Subject: RE: [Zope] How to check for a folder's existence and create it if it
> doesn'texist?
> 
> <dtml-if expr="'myFolder' not in objectIds('Folder')">
> <dtml-call expr="manage_addFolder('myFolder', 'title of my new
> folder')">
> </dtml-if>
This worked like a dream! Thanks!