Thanks David, That works fine although it is a little crude. What I'd like to be able to do is create folders with names and titles derived from an external File where each line contains the name and title, separated by a comma.
Guess I need to find out how to get python to read lines from a Zope File object.... On Wed, Jun 22, 2005 at 10:49:07AM -0700, David H wrote: > John Poltorak wrote: > > >Is there any way to create folders in batch? > > > >I need to create around 50 but don't fancy doing this manually. > > > > > > > > > John, > > Put this in a python script and test. > > for n in range(10): > container.manage_addFolder(id= str(n)) > > David > _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )