Thanks! That worked perfectly! -Charlie
On Tue, Apr 27, 2010 at 7:10 AM, Alec Lyons <[email protected]> wrote: > Not a beaker expert, but I think if you tried calling save, *then* persist > it would write to the disk without waiting for the action to finish. > > On Tue, Apr 27, 2010 at 1:06 AM, Charlie Meyer <[email protected]> wrote: > >> Hi all, >> >> I have a controller action that takes a while to perform, since it does >> some heavy data processing to create analysis of data sets. I would like to >> be able to update the user as to the progress of the action, but I am having >> trouble. >> >> Currently, I have the long running controller action updating the beaker >> session object with its progress, and some client-side ajax to fetch the >> status from the session. The problem I am running into is that the session >> object does not appear to be updated until the end of the request, so none >> of the updates by the long running controller action get seen by the ajax >> call. I looked in the beaker documentation and tried switching all my calls >> from session.save() to session.persist() to force the session to immediately >> save to the back-end, but it still doesnt work properly. >> >> Maybe I am going about this all wrong, but any help would be greatly >> appreciated. >> >> -Charlie >> >> -- >> 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]<pylons-discuss%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/pylons-discuss?hl=en. >> > > -- > 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]<pylons-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- Charlie Meyer [email protected] http://www.charliemeyer.net Department of Computer Science University of Illinois at Urbana-Champaign -- 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.
