On Wed, May 21, 2008 at 1:55 PM, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > Yes, I'm using 0.3, but how can use yield?
I mention yield because if I'm not mistaken, in 0.3, you can print stuff out as the script progresses rather than wait for script to finish. I suggest you try it out by writing a very basic function that yields text and sleeps for a couple seconds in between. I don't currently use 0.3 so I can't give you any working examples. Oh, and yeild is used just like print. >> Otherwise you could do some clever progress thingie using Ajax. >> > > Starting from where? Well, you'd need some way of the script you're running to report it's progress, be that a mysql table or a flat file. Then with some ajax you can poll for that information and echo it out. Once you know the script has finished you can forward the user. The JavaScript code is out of the scope of the mailing list and isn't exactly trivial, but there's a bunch of tutorials out there that can help you. Do a search for ajax progress bar and you'll see what I mean. -- Hermann Käser http://theragingche.com/ http://semicir.cl/user/hermzz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
