CSRF protection and session factories

2011-03-08 Thread Chris Withers
Hi All, First, the important question: If I use http://docs.pylonsproject.org/projects/pyramid/1.0/narr/sessions.html#using-the-default-session-factory is the CSRF protection provided by http://docs.pylonsproject.org/projects/pyramid/1.0/narr/sessions.html#preventing-cross-site-request-forgery

Re: pyramid, setting reponse status when using renderers?

2011-03-08 Thread Rob Miller
On 03/08/2011 07:36 PM, Iain Duncan wrote: I personally like using zcml to supply my renderer to my views so I can change templates from the zcml file. The only issue I'm having is that I don't know how I can set the response status when doing that. If my view is returning a dict, and the rendere

Re: pyramid, setting reponse status when using renderers?

2011-03-08 Thread Chris McDonough
On Tue, 2011-03-08 at 19:36 -0800, Iain Duncan wrote: > I personally like using zcml to supply my renderer to my views so I > can change templates from the zcml file. The only issue I'm having is > that I don't know how I can set the response status when doing that. > If my view is returning a dict

pyramid, setting reponse status when using renderers?

2011-03-08 Thread Iain Duncan
I personally like using zcml to supply my renderer to my views so I can change templates from the zcml file. The only issue I'm having is that I don't know how I can set the response status when doing that. If my view is returning a dict, and the renderer is turning that into the reponse, is there

Re: mod_wsgi mako - unable to find template

2011-03-08 Thread Eric Lemoine
On Tue, Mar 8, 2011 at 2:19 PM, Pierre GIRAUD wrote: > Thanks to Eric, we figured that pyramid_sqla is probably missing a > MANIFEST.in file. Mike, is this a bug in the pyramid_sqla paster template? I'd would say so, given that the "official" Pyramid paster templates do include a MANIFEST.in fil

Re: mod_wsgi mako - unable to find template

2011-03-08 Thread Pierre GIRAUD
Thanks to Eric, we figured that pyramid_sqla is probably missing a MANIFEST.in file. On Mon, Mar 7, 2011 at 7:02 PM, Pierre GIRAUD wrote: > It looks like "python setup.py develop" did help. > > Thanks. > Pierre > > On Sun, Mar 6, 2011 at 10:52 PM, Eric Lemoine > wrote: >> On Saturday, March 5, 2