fedora-vote README, NONE, 1.1 castvote.cgi, 1.8, 1.9 newelection.py, 1.5, 1.6 vote.cgi, 1.6, 1.7

Toshio Ernie Kuratomi (toshio) fedora-extras-commits at redhat.com
Wed Feb 14 05:49:28 UTC 2007


Author: toshio

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

Modified Files:
	castvote.cgi newelection.py vote.cgi 
Added Files:
	README 
Log Message:
* README: Explain how to setup a new election.
* castvote.cgi, vote.cgi: Set the election for Fedora Documentation.
* newelection.cgi: Set the information listed to that needed for the Fedora
  Documentation Steering Committee.



--- NEW FILE README ---
Running an Election
===================

This is a bit more manual than I'd like it to be but it's not too hard.

Information needed
------------------

* Title of election
* Number of seats to fill.
* Start and end dates (UTC)
* FAS Groups that can vote in the election
* FAS usernames for the candidates.

Steps
-----

1) Checkout the fedora-vote module from cvs
2) Fill in the electionName variable with the title of the election.
3) Fill in the seats variable with the number of seats to fill.
4) Fill the start variable with the timestamp for the starting date.
5) Fill the end variable with the timestamp for the ending date.
6) Fill in the votingGroups tuple with the FAS groups that can vote in the
   election.
7) Fill the candidates tuple with the FAS usernames that are up for election.
   I usually put their realname in a comment followed by their FAS account
   name but that's just because I'm anal :-)

8) Run the script on a machine that has network access to
   db1.fedora.phx.redhat.com, the fedora account system module checked out
   somewhere with the website module, the pgdb module, and the
   /etc/sysconfig/fedora-db-access file (to enable the website module to work).

   The script will ask you to confirm that the users and groups were correctly
   pulled from the database and then will insert the records into the elections
   database to make things work.

9) Edit vote.cgi and castvote.cgi.  Set the electionName variable to the
   title of the election.

10) Copy the updated vote.cgi and castvote.cgi to the voting directory on the
    app servers::
      scp vote.cgi castvote.cgi app1:/var/www/html/admin/voting/
      scp vote.cgi castvote.cgi app2:/var/www/html/admin/voting/

Notes
-----

In the past I have setup the election with an earlier date for people to test
it out first.  If you do this it's important to remember all the steps to
take when making the database ready for the real election:

1) update election set start_date = 'ACTUAL DATE', end_date = 'ACTUAL DATE' where id = ELECTIONID;

2) delete from ballots where election_id = ELECTIONID;

3) delete from votes where election_id = ELECTIONID;


Index: castvote.cgi
===================================================================
RCS file: /cvs/fedora/fedora-vote/castvote.cgi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- castvote.cgi	13 Jun 2006 08:15:46 -0000	1.8
+++ castvote.cgi	14 Feb 2007 05:49:26 -0000	1.9
@@ -24,7 +24,7 @@
 import voting
 import votingadmin
 
-electionName = 'FESCo 2006'
+electionName = 'Fedora Documentation Steering Committee February 2007'
 
 def make_thank_you(electionName, receipt):
     content = '''


Index: newelection.py
===================================================================
RCS file: /cvs/fedora/fedora-vote/newelection.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- newelection.py	3 Oct 2006 00:51:51 -0000	1.5
+++ newelection.py	14 Feb 2007 05:49:26 -0000	1.6
@@ -14,38 +14,32 @@
 dbHost = 'db1.fedora.phx.redhat.com'
 dbUser = 'electionsuser'
 
-electionName = 'Fedora Ambassadors 2006'
-start = '2006-09-21 00:00:00'
-end = '2006-09-27 23:59:59'
+electionName = 'Fedora Documentation Steering Committee February 2007'
+start = '2007-02-13 00:00:00'
+end = '2006-02-15 23:59:59'
 #start = '2006-09-29 00:00:00'
 #end = '2006-10-05 23:59:59'
-seats = '7'
+seats = '6'
 
-votingGroups = ('ambassadors',)
+votingGroups = ('cvsdocs',)
 
 candidates = (
-    # Alex Maier
-    'amaier',
-    # Charles VINCHON
-    'cvinchon',
-    # Damien Durand
-    'splinux',
-    # David Nalley
-    'ke4qqq',
-    # Francesco Ugolini
-    'wmirror',
-    # Jack Aboutboul
-    'jaboutboul',
-    # Jeffrey Tadlock
-    'jeffreyt',
-    # Patrick W. Barnes
-    'nman64',
-    # Robert Whetsel
-    'rwhetsel',
-    # Rodrigo Padula
-    'rodrigop',
-    # Thomas Chung
-    'tchung'
+    # John Babich
+    'jmbabich',
+    # Bart Couvreur
+    'couf',
+    # Paul W. Frields
+    'pfrields',
+    # Dimitris Glezos
+    'glezos',
+    # Gavin Henry
+    'ghenry',
+    # Robert 'Bob' Jensen
+    'bjensen',
+    # Pawel Sadowski
+    'mcgiwer',
+    # Karsten Wade
+    'kwade'
     )
 groupList = []
 candList = []


Index: vote.cgi
===================================================================
RCS file: /cvs/fedora/fedora-vote/vote.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vote.cgi	16 Jun 2006 15:50:51 -0000	1.6
+++ vote.cgi	14 Feb 2007 05:49:26 -0000	1.7
@@ -11,7 +11,7 @@
 
 import voting
 
-electionName = 'FESCo 2006'
+electionName = 'Fedora Documentation Steering Committee February 2007'
 
 def make_ballot(candidates, ballotName, openSeats):
     '''Return a string representing an html ballot.'''




More information about the fedora-extras-commits mailing list