fedora-vote newelection.py,1.10,1.11
Ricky Zhou (周家杰) (ricky)
fedora-extras-commits at redhat.com
Mon Apr 21 04:48:57 UTC 2008
Author: ricky
Update of /cvs/fedora/fedora-vote
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10050
Modified Files:
newelection.py
Log Message:
Fix some careless mistakes in newelection.py
Index: newelection.py
===================================================================
RCS file: /cvs/fedora/fedora-vote/newelection.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- newelection.py 21 Apr 2008 02:07:28 -0000 1.10
+++ newelection.py 21 Apr 2008 04:48:55 -0000 1.11
@@ -10,6 +10,7 @@
import pgdb
import website
from fedora.accounts.fas2 import AccountSystem
+from fedora.accounts.fas2 import AuthError
dbName = 'elections'
dbHost = 'db2.fedora.phx.redhat.com'
@@ -59,7 +60,7 @@
password = getpass.getpass('FAS Password: ')
try:
- fas = AccountSystem('http://localhost:8088/accounts/', username, password)
+ fas = AccountSystem('https://admin.fedoraproject.org/accounts/', username, password)
except AuthError:
print "Invalid username/password."
sys.exit(1)
@@ -79,8 +80,8 @@
sys.exit(1)
print "Check that these are the groups you want to vote in this election"
-for group in votingGroups:
- gid = fas.group_by_name(group)
+for groupname in votingGroups:
+ group = fas.group_by_name(groupname)
print '%s -- %s' % (group['name'], group['id'])
groupList.append(group['id'])
More information about the fedora-extras-commits
mailing list