Re: [pylons-discuss] Using ZODB from Response.app_iter

2014-06-15 Thread Jonathan Vanasco
If your result-set is small, have you considered tempfile.SpooledTemporaryFile - or slurping the entire DB record from the database within the view? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop rece

Re: [pylons-discuss] Using ZODB from Response.app_iter

2014-06-15 Thread Joe Steeve
On Wed, 2014-06-11 at 15:07 +0530, Joe Steeve wrote: > I dont see why the above should not work with other servers. Any > thoughts on this? Please can someone confirm that, that piece of code does not do some obvious debauchery? Joe -- Joe Steeve HiPro IT Solutions Private Limited http://hipro.

Re: [pylons-discuss] Using ZODB from Response.app_iter

2014-06-11 Thread Joe Steeve
On Tue, 2014-06-10 at 10:17 -0400, Chris McDonough wrote: > You might be able to use the "get_connection()" mechanism from > pyramid_zodbconn. But in reality it's going to be dicey, because the > app_iter may be processed outside the thread that handled the HTTP > request. Actually, for our pa

Re: [pylons-discuss] Using ZODB from Response.app_iter

2014-06-10 Thread Chris McDonough
On 06/10/2014 08:09 AM, Joe Steeve wrote: Hello all, I am implementing a CSV exporter to export the objects in a container. I decided to write it as an 'app_iter' so that I dont have to store an intermediate file. In the process, I figured that the ZODB connection gets closed before the app_iter

[pylons-discuss] Using ZODB from Response.app_iter

2014-06-10 Thread Joe Steeve
Hello all, I am implementing a CSV exporter to export the objects in a container. I decided to write it as an 'app_iter' so that I dont have to store an intermediate file. In the process, I figured that the ZODB connection gets closed before the app_iter gets called (and making my ZODB object refe