[Zope] Uploading Large Numbers of Photos
Stephen Pitts
smpitts@midsouth.rr.com
Fri, 31 Dec 1999 06:37:23 -0600
I'm trying to upload 50-60 JPGs as Photo objects (custom Product, just
released the other day). What's the most efficent way to do this?
Right now, I use an FTP client to upload all of the JPGs as images, then
I used this convertphotos DTML method to convert them all to Photos:
-- begin --
<dtml-in "objectItems('Image')">
<dtml-with sequence-item>
<dtml-call "PARENTS[0].manage_delObjects([id(),], REQUEST)">
<dtml-call
"PARENTS[0].manage_addProduct['Photo'].manage_addPhoto(PARENTS[0], id(),
data, title, REQUEST)">
</dtml-with>
</dtml-in>
Done!
-- end --
However, it takes just over 4 1/2 minutes to convert approximately 50
Images into Photos? Is there a more efficent way to do this?
--
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org