[Zope] Uploading files
David Pratt
fairwinds at eastlink.ca
Wed Jun 8 11:37:38 EDT 2005
Hi Tino. I was reading this and I was looking at incorporating some
kind of response to users while processing a time consuming script. I
was thinking about just putting up an animated gif that says
'Processing' (or something similar or to send some text advising where
they are in the processing). I am trying to understand what you are
saying about the return. If at the end of the process you did something
like a return or redirect will this not work properly? Is there a
script example that you can point me to that demonstrates a
context.REQUEST.RESPONSE.write() admidst processing somewhere to
provide feedback while processing. Many thanks.
Regards,
David
On Friday, June 3, 2005, at 03:24 PM, Tino Wildenhain wrote:
> Timeout can be an issue with large files and when the remote
> server is slow. In this case, you can send some data to the
> clients browser while you work, via context.REQUEST.RESPONSE.write()
> Note: once you start using response.write() you cannot use return()
> in your script - at least the user wont see any output from it.
> You also should catch exeptions and provide meaningfull output
> when they happen since the usual exeption handling will work but
> the user wont see its output.
More information about the Zope
mailing list