Re: Authorization and "forbidden" view

2011-03-24 Thread Chris McDonough
On Thu, 2011-03-24 at 18:09 -0700, drebbin wrote: > Hi all, > > > I have setup auth and authz as described in the docs, together with > open_id. For testing, I have made a simple secured view and have also > set up the "Forbidden" view as a login form. > As anonymous, logging in by hand and then

Authorization and "forbidden" view

2011-03-24 Thread drebbin
Hi all, I have setup auth and authz as described in the docs, together with open_id. For testing, I have made a simple secured view and have also set up the "Forbidden" view as a login form. As anonymous, logging in by hand and then visiting the secured page works fine. But when I directly acce

Re: Deform/Colander Schema declaration with built-in validator

2011-03-24 Thread Chris McDonough
On Thu, 2011-03-24 at 12:41 -0700, oO wrote: > Is it possible to declare a Mapping Schema with a built-in validator > attached to it? > > I'm creating a form has uses Geo coordinates ( lat, lon ) and I'm > looking for the best way to implement these. > Right now, I have the following: > > class G

Deform/Colander Schema declaration with built-in validator

2011-03-24 Thread oO
Is it possible to declare a Mapping Schema with a built-in validator attached to it? I'm creating a form has uses Geo coordinates ( lat, lon ) and I'm looking for the best way to implement these. Right now, I have the following: class GeoCoordSchema(colander.MappingSchema): lat = coland

Re: Pyramid: Authn policy, remember() and groupfinder confusion

2011-03-24 Thread Vlad K.
Yes, that much I understood from the documentation, but for example this is from the pyramid.security documentation: headers = remember(request, 'chrism', password='123', max_age='86400') From which I gather that password and max_age are the kw params where "meaning of **kw must be agr

Re: Pyramid: Authn policy, remember() and groupfinder confusion

2011-03-24 Thread Parnell Springmeyer
"Vlad K." writes: > First of all, I don't quite understand the kw params of the remember() > function. If those params are app specific, where can they be "read" > and used after remembering? I use it like this: headers = remember(request, user.id) return HTTPFound(location=resource_url

Pyramid: Authn policy, remember() and groupfinder confusion

2011-03-24 Thread Vlad K.
I'm slightly confused regarding the trio of AuthTktAuthenticationPolicy, its groupfinder callback and the pyramid.security.remember() function. First of all, I don't quite understand the kw params of the remember() function. If those params are app specific, where can they be "read" and used

Re: An overview over form libraries

2011-03-24 Thread Gael Pasgrimaud
On Wed, Mar 23, 2011 at 7:57 PM, Mike Orr wrote: > > FormAlchemy >  * Pylons: some usage. >  * Pyramid: Work just fine with pyramid: http://docs.formalchemy.org/pyramid_formalchemy/ >  * Philosophy: automatically generate widgets for fields in > SQLAlchemy ORM objects. (Not usable outside this c

Re: tutorial / screencast

2011-03-24 Thread Vincent Côté-Roy
Thanks! On Thu, Mar 24, 2011 at 12:00 AM, Blaise Laflamme wrote: > Hi, > > there's a work-in-progress of a single file tutorial but docs are not > completed... should be soon: > > https://github.com/blaflamme/pyramid_quick_tutorial > > On Mar 23, 3:51 pm, Vincent Côté-Roy wrote: >> Hi, >> >> Cou

WebHelpers 1.3 final released

2011-03-24 Thread Mike Orr
WebHelpers 1.3 is released. There was a performance regression in 1.3b1 (released last week), which is fixed in this version. A patch that supposedly made Paginate compatible with Sprox slowed down SQLAlchemy queries by querying for all records rather than just the current page. Anyone who downloa