Hey list, Is it possible in web.py to draw a web page, perform some computations, and then redraw the same page? Say I have the following scenario:
1. A user logs in for the first time 2. Draw a page that says "Hi! Looks like you're new. Please wait while we set up your account..." 3. Create some database entries and do some computations behind the scenes 4. Re-draw the page so it says "Done! Welcome. What's next?", and has the main site interface. Is this possible in web.py? I'm trying to do this on the same page without redirecting to a 'setup' URL and then back, but I suppose I could do the redirects if necessary. I have tried making some calls to 'print render.setup()', but this only seems to output the template to the console, not to the web page. Is it possible to do this within one GET() function? Does this require putting the calculations and re-draw on a separate thread? I am also wondering: does web.py only draw the web page when the GET or POST function finally returns? I see in some old mailing list discussions people call 'print render.foo()', but this does not appear to actually draw to the web page (unless I'm doing something wrong?). Thanks, let me know. Dave -- 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.
