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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jan
> Torleif Pedersen
> Sent: Monday, May 22, 2006 4:17 AM
> To: [email protected]
> 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
>
>
BEGIN:VCARD
VERSION:2.1
N:Runyan;Alan
FN:Alan Runyan
TEL;WORK;VOICE:x111
TEL;CELL;VOICE:713-530-5244
ADR;WORK:;Houston
LABEL;WORK:Houston
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20060417T160114Z
END:VCARD
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup