El 06/02/14 16:31, Tres Seaver escribió:
-----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).

Perfect. Thank you.

--
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