Pyramid 1.1a3 released

2011-06-26 Thread Chris McDonough
The third alpha of Pyramid 1.1 (1.1a3) has been released. Here are the changes: Features - Added ``mako.preprocessor`` config file parameter; allows for a Mako preprocessor to be specified as a Python callable or Python dotted name. See https://github.com/Pylons/pyramid/pull/183

Re: WebOb POST vars like in PHP?

2011-06-26 Thread Vlad K.
Thanks for your reply, but the problem is there is no request.POST(var), there is request.POST(var[foo]) and at that point I don't know all the possible values of foo. I solved with with a custom extraction function. While I'm at it, though, I wonder how others are solving the same

Re: WebOb POST vars like in PHP?

2011-06-26 Thread Blaise Laflamme
Formencode uses keys with . for nested dictionaries and -int for ordered lists, take a look: http://formencode.org/Validator.html#http-html-form-input On Jun 26, 7:04 am, Vlad K. v...@haronmedia.com wrote: Thanks for your reply, but the problem is there is no request.POST(var), there is

Re: WebOb POST vars like in PHP?

2011-06-26 Thread Chris Withers
On 26/06/2011 12:04, Vlad K. wrote: Thanks for your reply, but the problem is there is no request.POST(var), there is request.POST(var[foo]) and at that point I don't know all the possible values of foo. I solved with with a custom extraction function. I'd strongly recommend you look at

Re: WebOb POST vars like in PHP?

2011-06-26 Thread Chris McDonough
On Sun, 2011-06-26 at 13:04 +0200, Vlad K. wrote: Thanks for your reply, but the problem is there is no request.POST(var), there is request.POST(var[foo]) and at that point I don't know all the possible values of foo. I solved with with a custom extraction function. While I'm at it,

Re: Deform and Mako

2011-06-26 Thread Matt Feifarek
On Fri, Jun 24, 2011 at 10:02 PM, Chris McDonough chr...@plope.com wrote: Not really. As far as I can tell, adding a css_class to the mix only puts it into the input tag, not any of the containing markup. So, doing something trivial like putting some text-inputs side-by-side is not

Re: Deform and Mako

2011-06-26 Thread Chris McDonough
On Sun, 2011-06-26 at 17:13 -0500, Matt Feifarek wrote: On Fri, Jun 24, 2011 at 10:02 PM, Chris McDonough chr...@plope.com wrote: Not really. As far as I can tell, adding a css_class to the mix only puts it into the input tag, not any of the containing

Optional parameters in routes

2011-06-26 Thread Krzysztof Ożóg
Hello, is there a possibility to configure a route with optional parameters ? I've noticed that webhelpers' pagination creates urls like http://app/route?page=1 but I want to have urls like http://app/route/page/1/column/title/dir/asc - all of this parameters could be optional. I've figured out