[Zope] how to block until an image is done uploading?

Michel Pelletier michel@digicool.com
Sun, 24 Oct 1999 12:45:24 -0400


> -----Original Message-----
> From: Roman Milner [mailto:roman@speeder.com]
> Sent: Saturday, October 23, 1999 5:15 PM
> To: zope@zope.org
> Subject: [Zope] how to block until an image is done uploading?
> 
> 
> So, can anyone say if I have diagnosed the problem right and if so how
> can I force things to wait until the upload is finished?  I've tried
> just using a sleep, but that didn't work.  No matter how long the
> sleep, I still get the error.  

Hmm..this is some pretty weird behavior.

> 
> Thanks,
> ^Roman
> 
> 
>     def make_pictures(self, pic_folder, id, file):
>         pic_folder.manage_addImage(id + '_thumbnail', file, 
> id + '_thumbnail')
>         pic_folder.manage_addImage(id, file, id)
>         self._thumbnailize(getattr(pic_folder, id + '_thumbnail'))

Instead of using the Zope object, why don't you create the thumbnail
with 'file'?

-Michel