[Zope] How to create a folder in a just created folder using a
python script.
Dieter Maurer
dieter at handshake.de
Fri Sep 9 13:54:16 EDT 2005
Martin Koekenberg wrote at 2005-9-9 17:48 +0200:
> ...
>In a python script I use teh following line to create a folder:
>
>context.manage_addProduct['OFSP'].manage_addFolder(Unique,
>title=field_titel)
>
>Unique is a unique ID.
>
>How can I create to folder is this folder in the same script ?
You fetch the newly created object with:
newly_created_object = getattr(context, Unique)
and apply the same procedure as above for "newly_created_object"
in place of "context".
--
Dieter
More information about the Zope
mailing list