Editing Maemo.org team/Creating an election

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 12: Line 12:
; Updating the electorate
; Updating the electorate
-
: The electorate is the table of valid voters.  This still under construction at the time of this writing, and is a highly manual process still.  To update this, an admin must copy columns of the login table from the Midgard system into a table in the voting database. ('''Admin Note:''' The script "update-midgard-table.php" currently does this, but must be run as root to accomplish this task.) From there, the interface can be used to update the e-mail and/or find and add new members to the electorate table.
+
: The electorate is the table of valid voters.  This still under construction at the time of this writing, and is a highly manual process still.  To update this, an admin must copy columns of the login table from the Midgard system into a table in the voting database.  From there, the interface can be used to update the e-mail and/or find and add new members to the electorate table.
; Create New Election
; Create New Election
Line 62: Line 62:
; Compute Results of Vote (Valid on '''past''' elections only)
; Compute Results of Vote (Valid on '''past''' elections only)
: This function allows for the entering of election results.  Be default, the system should auto-generate the results and present them for entering into the database as final an approved.  This should work for referendums and runoff elections now.  If an error occurs, consult and admin.
: This function allows for the entering of election results.  Be default, the system should auto-generate the results and present them for entering into the database as final an approved.  This should work for referendums and runoff elections now.  If an error occurs, consult and admin.
-
 
-
 
-
== Resending Vote Tokens ==
 
-
 
-
Under the new interface, any voter can force their own vote token to be mailed to them.  The admin may need to update the user's e-mail address with the web interface as documented above, but should never have to extract, e-mail, or see a user token with this system.  The voter simply needs to visit the login page for the on-going election or referendum they want to participate in, and use the "Get Token" button.  This will ask them for their username and e-mail address.  If they match (in the voting database) and the voter has a valid token, it will re-mail them automatically.
 
Line 160: Line 155:
Awk script to generate the table:
Awk script to generate the table:
-
<source lang="php" >
+
<source lang="awk">
BEGIN{ FS="\t";
BEGIN{ FS="\t";
print "{|\n|-\n! Username\n! Real name\n! Karma";
print "{|\n|-\n! Username\n! Real name\n! Karma";
Line 186: Line 181:
And we're all done! The election will run until its closing date, at which point you can [[../Generating election results | generate the results]]
And we're all done! The election will run until its closing date, at which point you can [[../Generating election results | generate the results]]
-
; Resending tokens
+
== Resending tokens ==
Sometimes token emails get caught in spam filters, or accidentally deleted, or the first email address associated with their account is dead, or whatever. You can find the anonymous token associated with someone as long as they have not voted yet.
Sometimes token emails get caught in spam filters, or accidentally deleted, or the first email address associated with their account is dead, or whatever. You can find the anonymous token associated with someone as long as they have not voted yet.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)