fedora-vote voting.py,1.13,1.14

Ricky Zhou (周家杰) (ricky) fedora-extras-commits at redhat.com
Mon Apr 21 05:15:52 UTC 2008


Author: ricky

Update of /cvs/fedora/fedora-vote
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18878

Modified Files:
	voting.py 
Log Message:
Fix more carelessness to get voting working.



Index: voting.py
===================================================================
RCS file: /cvs/fedora/fedora-vote/voting.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- voting.py	21 Apr 2008 02:07:28 -0000	1.13
+++ voting.py	21 Apr 2008 05:15:17 -0000	1.14
@@ -50,7 +50,7 @@
             self.electionId = electionIds[0][0]
         self.clear_cache()
 
-    def authorize_user(self, user):
+    def authorize_user(self, username):
         '''Verify the voter can vote in this election.'''
 
         # Ask the voting db for the group(s) allowed to vote
@@ -71,7 +71,7 @@
         # Ask the accounts db if user belongs to that group.
         for groupid in self.votingGroups:
             group = self.fas.group_by_id(groupid)
-            if (group in person.approved_memberships):
+            if (group in person['approved_memberships']):
                 return True
         return False
 




More information about the fedora-extras-commits mailing list