-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/06/2014 09:33 AM, Antonio Beamud Montero wrote:
> I need the user principals to filter a list of objets, not only the 
> views, but also the results must be filtered by user group. It's ok to
> add a property like:
> 
> c.add_request_method('pyramid.security.effective_principals', 
> 'principals', reify=True)
> 
> and use in the request lifespan?

Pyramid 1.5 already does that for you:

 
http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/api/request.html#pyramid.request.Request.effective_principals

(and deprecates the function-based APIs).



Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          [email protected]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLzqssACgkQ+gerLs4ltQ6Q2QCgy/q0ZPPDsiI/v8bAzzi4dSSh
Y2cAoKFOxT2mFfaEM1elphqwZHDGytvt
=Mh5r
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to