Re: Is there a default setting for http_cache?

2013-06-12 Thread Brian Sutherland
On Wed, Jun 12, 2013 at 03:39:09AM +0200, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in a Pyramid application? I'm pretty sure you could do this in a tween or WSGI middleware. But I don't know of a specific knob. -- Brian Sutherland --

Re: pyramid+wtforms+i18n

2013-06-12 Thread Laurent DAVERIO
Hi, your problem has nothing to do with wtforms (you would have the same e.g. with Deform. It only has to do with the moment at your code is read and executed by Python. I guess your module is executed during Pyramid's startup phase, before any request is even made. A that time, translating the

Re: pyramid+wtforms+i18n

2013-06-12 Thread unknown715
Hello! First, thank you very much for your response! I do understand my problem is not wtforms-specific, but I didn't find and info on how to solve this issue when using deform, formencode or any other library... The solution you provided really does work, however... :/ I really wouldn't like

Re: Is there a default setting for http_cache?

2013-06-12 Thread Paweł Dobrowolski
I used to do things like that using wrapped view_config decorator. https://gist.github.com/pmdz/5763651 On 06/12/2013 03:39 AM, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in a Pyramid application? -- Christoph -- You received this

Re: pyramid+wtforms+i18n

2013-06-12 Thread Laurent DAVERIO
Right now I'm trying to send request.translate to SignupForm via: @view_config(...) def signup(request): customer = Customer() form = SignupForm(request.POST, customer, _=request.translate) ... I guess this can't work either, for the same reason. But this gave me an idea :-)

Re: What's up with the website?

2013-06-12 Thread Jonathan Vanasco
On Tuesday, June 11, 2013 5:54:43 PM UTC-4, sams...@gmail.com wrote: Whoops. Meant to write there's no mention of Pylons 1.4.1 or 1.4.2, not Python 1.4.1. or 1.4.2. The latest Pylons is 1.0.1 ; It's been put in maintenance mode with no further active development. Active development

Re: What's up with the website?

2013-06-12 Thread Steve Piercy
On 6/12/13 at 1:31 PM, jvana...@gmail.com (Jonathan Vanasco) pronounced: On Tuesday, June 11, 2013 5:54:43 PM UTC-4, sams...@gmail.com wrote: Whoops. Meant to write there's no mention of Pylons 1.4.1 or 1.4.2, not Python 1.4.1. or 1.4.2. The latest Pylons is 1.0.1 ; It's been put in