[Zope-CMF] Creating hierarchical folders
Christian Scholz
cs@comlounge.net
Wed, 4 Jun 2003 18:26:41 +0200
Hi!
> Is it possible to create a hierarchical folder structure from an external
> script calling invokeFactory()?
>
> To further explain my question:
>
> CMFSite = app.CMFSite
> CMFSite.invokeFactory(type_name="Folder", id='newFolder')
>
> creates a folder called 'newFolder' in the root of the site 'CMFSite'.
>
> How can I designate that I want a folder to be created in the directory
> '/folderTop/folderNext'?
CMFSite = app.CMFSite
folder = CMFSite.folderTop
folder.invokeFactory(type_name="Folder", id='folderNext')
This should work..
objects in folders are basically attributes of folder objects.
cheers,
Christian