[Zope-dev] Recursive folders from Python

Jason Spisak 444@hiretechs.com
Mon, 16 Oct 2000 10:46:37 -0700


Zopists,

Yesterday I was trying to create recursive folders from DTML.
I'd like to do the same from Python.
Does anyonw know why this code won't create a folder within a folder. 
It's tells me the id is already in use, so that means it's not
descending into the newly created folder to make another folder.

def create(self):
    for digit in range(0, 10):
        folder    = self.manage_addFolder(str(digit), str(digit))
        subfolder = self.folder.manage_addFolder(str(digit), str(digit))

All my best,

Jason Spisak
444@hiretechs.com