[Zope-CMF] Creating hierarchical folders
Dieter Maurer
dieter@handshake.de
Wed, 4 Jun 2003 20:34:09 +0200
Slade Mrs A wrote at 2003-6-4 16:46 +0100:
> Is it possible to create a hierarchical folder structure from an external
> script calling invokeFactory()?
Sure...
> 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'?
You continue:
newFolder= CMFSite.newFolder
newFolder.invokeFactory(type_name="...", id='newId')
newWhatEver= newFolder.newId
....
Dieter