-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/27/2014 10:20 AM, Gerhard Schmidt wrote:
>
> Maybe I'm doing the whole thing wrong and there is a better way to do
> this.
Use the a 'request.has_permission' check to filter the suboboejcts, e.g.::
alllowed = [x for x in context.getClubs()
if request.has_permission('view', x]
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/
iEYEARECAAYFAlOEu9kACgkQ+gerLs4ltQ642gCgrMqfcOVW4io1xusYXe1V5sIq
uSgAoNbqTBpK/yDRY931do9rmRtOL/D2
=ZdiH
-----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/d/optout.