Re: [Zope-dev] Recursive folders from Python

2000-10-31 Thread Phil Harris
t line is the getattr one (as marked). hth Phil - Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> To: "Jason Spisak" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, October 30, 2000 6:43 PM Subject: Re: [Zope-dev] Recursive folde

Re: [Zope-dev] Recursive folders from Python

2000-10-30 Thread Dieter Maurer
Jason Spisak writes: > 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): >

Re: [Zope-dev] Recursive folders from Python, Thanks to all

2000-10-17 Thread Jason Spisak
t; > > return 'Done' > > > > def create_folder(folder, id): > > try: folder.manage_addFolder(id) > > except: pass > > > > new_folder = getattr(folder, id) > > return new_folder > > > > - Original Message - > &g

Re: [Zope-dev] Recursive folders from Python

2000-10-16 Thread Kapil Thangavelu
e' > > def create_folder(folder, id): > try: folder.manage_addFolder(id) > except: pass > > new_folder = getattr(folder, id) > return new_folder > > - Original Message - > From: "Jason Spisak" <[EMAIL PROTECTED]> > To: <[EMAI

Re: [Zope-dev] Recursive folders from Python

2000-10-16 Thread Andy McKay
ED]> Sent: Monday, October 16, 2000 10:46 AM Subject: [Zope-dev] Recursive folders from Python > 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 f

[Zope-dev] Recursive folders from Python

2000-10-16 Thread Jason Spisak
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 anothe