[Zope] Programatically creating folders.
John Kipling Lewis
Wed, 21 May 2003 12:40:12 -0400 (EDT)
Actually, I was mistaken.
We've written a Zope product that extends folder. We want to add one of
our objects to this extended folder. We assume that 'OFSP' in
manage_addProduct would be changed to point to our new product, but are
unsure what to call it.
> The API in the Zope Book is your friend.
> manage_addProduct['OFSP'].manage_addFolder(id, title)
> The manage_addProduct is an ObjectManager; manage_addFolder is a
> The detailed form depends upon whether you are creating the object
> is DTML, python, or ZPT. For example, use
> <dtml-call expr="manage_addProduct....">
> from DTML,
> from Python.