I can list all RB users this way:

>>> from django.contrib.auth.models import User
>>> for user in User.objects.all():
>>>    print user

That correctly prints out all of my users. But the same doesn't work for 
Group

>>> from django.contrib.auth.models import Group
>>> for group in Group.objects.all():
>>>    print group
default reviewer

I have about 30 groups defined in RB, but I only get 'default reviewer'. 
 What I'd like to do is list out all the groups, or more specifically, for 
each group, list all the user in the group.  There's probably a set of 
django functions that will do that, but I'm having trouble finding them. 
 Can someone point me in the right direction?

Thanks

--Steve

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to