That's not quite it either. This is checking for a group 'role' as opposed to looking for all users that have a specific permission (auth_permission).

    -Jim

On 4/20/2012 2:27 AM, Johann Spies wrote:
On 20 April 2012 03:07, Jim Steil <j...@qlf.com <mailto:j...@qlf.com>> wrote:

    No, I'm looking for a list of user ids.  I don't want to filter by
    user id.


In [25]: reds = [x.id <http://x.id> for x in db((db.auth_user.id <http://db.auth_user.id> == db.auth_membership.user_id)&(db.auth_group.id <http://db.auth_group.id> == db.auth_membership.group_id) & (db.auth_group.role == 'kb_ed')).select(db.auth_user.id <http://db.auth_user.id>)]

In [26]: reds
Out[26]: [2, 1, 4]

Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Reply via email to