Re: Context still is DefaultRootFactory although root_factory is custom

2012-11-06 Thread Michael Merickel
This is not expected. You'll have to paste some code to figure out why this may be the case. On Nov 6, 2012 1:36 PM, "khairi hafsham" wrote: > hi, > > in my application, a custom RootFactory is passed as an argument to the > Configurator. But when debugging for permission, the context for all vie

Context still is DefaultRootFactory although root_factory is custom

2012-11-06 Thread khairi hafsham
hi, in my application, a custom RootFactory is passed as an argument to the Configurator. But when debugging for permission, the context for all views is still DefaultRootFactory. only when the custom factory passed to the add_route() method, will it be the context for the particular route. is

Re: Changing content-type on renderer response

2012-11-06 Thread Marten
Thanks! I thought accessing the request.response object would automatically enforce to send a manual response, but it works fine the way you suggested it. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web vis

Re: Scaling resques/second processed by using multiple process?

2012-11-06 Thread Frédéric Bastien
Hi, thanks for all your responses, it help to guide me. I removed the use of gevent and used waitress, but this ended up in a slowdown. I think in my case, I'm more cpu bound then IO bound. I tried using multiple instance that nginx load balance from this page and it worked! If I use only 1 proc

Re: Integration of Sphinx (files) into a Pyramid application

2012-11-06 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is a total crazy solution but perfect! Thanks, Andreas Eldav wrote: > Hi Andreas, > > I recently had to solve a similar problem, and I chose to export my > Sphinx document in pickle format (initially I wanted to develop a > Sphinx Bootstrap th

Re: Scaling resques/second processed by using multiple process?

2012-11-06 Thread Carsten Senger
Hi Frédéric, Am 05.11.2012 22:13, schrieb Frédéric Bastien: > Hi, > > I inherited a project that is done with pyramid 1.2. Currently, it can > process aroud 100-200 requests/s for dynamic page generated. The bottleneck > seam to be the GPU, as the paster process run close to 100%. We need to be

Re: Integration of Sphinx (files) into a Pyramid application

2012-11-06 Thread Eldav
Hi Andreas, I recently had to solve a similar problem, and I chose to export my Sphinx document in pickle format (initially I wanted to develop a Sphinx Bootstrap theme, but I found the "pickle" approach much simpler). In this format, each page of your document is generated as a pickled dictiona

Re: Scaling resques/second processed by using multiple process?

2012-11-06 Thread Malthe Borch
On 5 November 2012 22:13, Frédéric Bastien wrote: > As we have multi-cores CPU, is there a way to make use of them to get faster > results? Each view have been done to scale between server. So there is no > concurency problem. Each CPython-process will use only one core; you will just have to run