fedora-vote voting.py,1.6,1.7
Toshio Ernie Kuratomi (toshio)
fedora-extras-commits at redhat.com
Thu Jun 15 18:34:58 UTC 2006
Author: toshio
Update of /cvs/fedora/fedora-vote
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32763
Modified Files:
voting.py
Log Message:
* voting.py: switch from using website.get_user_group() to
website.have_group() as the former doesn't return all groups that a user
is a member of.
Index: voting.py
===================================================================
RCS file: /cvs/fedora/fedora-vote/voting.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- voting.py 15 Jun 2006 14:21:12 -0000 1.6
+++ voting.py 15 Jun 2006 18:34:56 -0000 1.7
@@ -59,9 +59,8 @@
' db for %s' % user
# Ask the accounts db if user belongs to that group.
- groups = website.get_user_groups(self.dbh, userId)
- for group in groups:
- if group[0] in self.votingGroups:
+ for group in self.votingGroups:
+ if (website.have_group(self.dbh, userId, group)):
return True
return False
More information about the fedora-extras-commits
mailing list