I think you could use the WebUndo (at least some ideas there) library.

It spawns a new thread and you could exchange infos between the running
thread, and a new request (via Queues or app_globals).

WebUndo takes a Python function and executes it in a new thread, allowing
you to cancel the operation before it's performed.  Though, this might not
be the exact behavior you're looking for, it's definitely a starting point.
The code there is very simple, so you can have a peek inside.

http://webundo.abourget.net

Alexandre

Le 28 mars 2010, 8:01 AM, "Alec Lyons" <[email protected]> a écrit :

You have to get your controller action to return a
generator<http://docs.python.org/glossary.html#term-generator>...take
a look at
http://wiki.pylonshq.com/display/pylonsfaq/Streaming+Content+to+the+Browserfor
a pretty straightforward example

On Sun, Mar 28, 2010 at 4:44 AM, Charlie Meyer <[email protected]> wrote: >
> Hi all, > > I'm cur...

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to