[Setup] Batch generation of folders in Plone

Alan Runyan alan at enfoldsystems.com
Mon May 22 14:07:11 UTC 2006


Use zopectl.py

Something like:

for folder in context.contentValues('Folder'):
    for x in range(0, 10000):
        folder.invokeFactory('Gene', id=x)


 Alan Runyan
 Enfold Systems, Inc.
 http://www.enfoldsystems.com/
 phone: +1.713.942.2377x111
 fax: +1.832.201.8856

 

> -----Original Message-----
> From: setup-bounces at lists.plone.org 
> [mailto:setup-bounces at lists.plone.org] On Behalf Of Jan 
> Torleif Pedersen
> Sent: Monday, May 22, 2006 4:17 AM
> To: setup at lists.plone.org
> Subject: [Setup] Batch generation of folders in Plone
> 
> Greetings, 
> 
> I have setup a Plone site for a Biology application and now I 
> would like to generate a set of standard folders to contain 
> information on a set of genes. That is I want a folder for 
> each gene in a list of approximately 10.000 genes. How can I 
> generate these automagically ? Does anyone have a php script 
> to do this ? Or do I have to make a script to do it through 
> lynx ... - which I would like to avoid. Or is there a really 
> smart way of doing this in Plone/Zope
> 
> Jan 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Alan Runyan.vcf
Type: text/x-vcard
Size: 223 bytes
Desc: Alan Runyan.vcf
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20060522/8ceebfdf/attachment.vcf>


More information about the Setup mailing list