[Zope] Can not add photofolder programmatically

Ron Bickers rbickers-dated-1000230083.485042@logicetc.com
Tue, 4 Sep 2001 13:41:22 -0400


Use the following:

  context.manage_addProduct['Photo'].manage_addPhotoFolder(id, title)

The Photo Folder's add method is in the 'Photo' product.
_______________________

Ron Bickers
Logic Etc, Inc.


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Robert Rottermann
> Sent: Tuesday, September 04, 2001 11:41 AM
> To: zope@zope.org
> Subject: [Zope] Can not add photofolder programmatically
> 
> 
> Hi there,
> 
> I am trying to add a photofolder by help of a script.
> 
> context.manage_addProduct['ZipFolder']..... works
> as does
> context.manage_addProduct['Photo']
> where
> context.manage_addProduct['PhotoFolder ']...
> does not.
> I get an error 
> Error Type: AttributeError
> Error Value: PhotoFolder
> 
> How comes?