[Zope] Programatically adding folders
Chris Withers
chrisw@nipltd.com
Tue, 25 Apr 2000 21:18:15 +0100
Hi,
I'm wondering what the correct way to create a folder within a folder in a DTML method is.
I tried:
<dtml-call "folderObject.manage_addFolder(folderNameVar)">
But wasn't convinced by the results.
If you use the form in the management interface, the eventual method that gets called is:
folderObject/manage_addProduct/OFSP/manage_addFolder
Which would suggest I should use something like:
<dtml-with "folderObject.manage_addProduct('OFSP')">
<dtml-call "manage_addFolder(folderNameVar)">
</dtml-with>
But I haven't been brave enough to try it.
What IS the correct way? More importantly, where are/should things like this be documented?
Also, how should I find out what the 'preferred' way of doing something is?
cheers,
Chris