Bradley M. Kuhn [Thu, 14 May 2015 22:59:25 +0000 (15:59 -0700)]
Remove GNOME Navbar
Seeking this code to be more general than the GNOME Foundation voting
site.
Bradley M. Kuhn [Thu, 14 May 2015 22:38:11 +0000 (15:38 -0700)]
Revert: "Correct variable name" from 2014-02-09
During patch review by Tobias Mueller <muelli@cryptobitch.de>, Tobias
pointed out that the original commit referenced above seemed to make a
change that was inappropriate. I reread my commit message and cannot
figure out why I made that change, at least, it doesn't make sense for
the reason I described, and Tobias is right that the escaped version
should be used here.
I've therefore corrected the problem and will test to see if any ill
effects occur.
Bradley M. Kuhn [Thu, 14 May 2015 22:25:28 +0000 (15:25 -0700)]
Assure $anon_token_id is integer.
The code that currently calls this only ever passes in a value that was
returned by elec_verify_voted_token() and as such no security issue
existed here.
However, assuming this function might be used for someone else in
future, we might as well case the value back to integer "just in case".
HT Tobias Mueller <muelli@cryptobitch.de> who pointed this out.
Bradley M. Kuhn [Thu, 27 Feb 2014 16:40:20 +0000 (11:40 -0500)]
Add blank line to fix formatting.
Bradley M. Kuhn [Thu, 27 Feb 2014 16:39:28 +0000 (11:39 -0500)]
Remove stray 's.
Bradley M. Kuhn [Thu, 27 Feb 2014 16:38:57 +0000 (11:38 -0500)]
Note that STV elections are what this is for.
Bradley M. Kuhn [Thu, 27 Feb 2014 16:38:47 +0000 (11:38 -0500)]
Note that Apache Steve exists.
Bradley M. Kuhn [Wed, 12 Feb 2014 19:25:50 +0000 (14:25 -0500)]
Better headings for this section.
Bradley M. Kuhn [Wed, 12 Feb 2014 19:24:35 +0000 (14:24 -0500)]
Add a subtitle for the list of other projects.
Bradley M. Kuhn [Wed, 12 Feb 2014 00:33:29 +0000 (19:33 -0500)]
Actually the web user shouldn't have permission to update results.
Bradley M. Kuhn [Mon, 10 Feb 2014 23:34:35 +0000 (18:34 -0500)]
Documentation of how to publish the results of an election.
Bradley M. Kuhn [Mon, 10 Feb 2014 23:32:23 +0000 (18:32 -0500)]
Each election should only have one set of results; use UNIQUE to enforce.
Bradley M. Kuhn [Mon, 10 Feb 2014 23:11:09 +0000 (18:11 -0500)]
Actually, scrolling should be not necessary at all now, so I'm removing that text.
<mina86> it will never scroll [18:09]
<mina86> or I should say, unless you have *very* narrow browser window
<bkuhn> :)
<mina86> the names of the licences will wrap if it's too narrow [18:10]
<mina86> and horizontal scroll will appear only if individual words in license
names are too long
Bradley M. Kuhn [Mon, 10 Feb 2014 23:08:33 +0000 (18:08 -0500)]
Since the box is now side-by-side, scrolling would be to the right.
Michal Nazarewicz [Mon, 10 Feb 2014 22:09:45 +0000 (23:09 +0100)]
[PATCH] Adjust step 2 page to use two-column layout.
Bradley M. Kuhn [Mon, 10 Feb 2014 23:01:31 +0000 (18:01 -0500)]
Some users reported a problem of accidentally pasting in whitespace.
The right fix, of course, is have the code strip whitespace, but this note is
a useful thing in the meantime.
Bradley M. Kuhn [Mon, 10 Feb 2014 23:00:07 +0000 (18:00 -0500)]
Add hr here.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:56:08 +0000 (17:56 -0500)]
create colors for hdrNav now that we don't import GNOME's anymore.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:47:31 +0000 (17:47 -0500)]
Remove additional references to GNOME's CSS.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:47:11 +0000 (17:47 -0500)]
Force color for input text to be #000 on #eee,
instead of relying on default foreground color.
Thanks to pehjota for this comment:
<pehjota> bkuhn: In vote.css for "input[type=text]", you might want to set
"color" in addition to "background-color". Otherwise, with my dark
GTK+ theme, I see white text in a light gray box, which is hard to
read. :)
Bradley M. Kuhn [Mon, 10 Feb 2014 22:41:31 +0000 (17:41 -0500)]
Improve the text for Step 2/4.
I'm trying to get a version of this text that is clear. This is another
attempt.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:33:21 +0000 (17:33 -0500)]
More details on how GNOME code works, and note that E-Vote is probably better.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:31:27 +0000 (17:31 -0500)]
Change this to have a few more buzzwords that people might search for.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:30:21 +0000 (17:30 -0500)]
Another rewrite of the first section of the README,
now including information that I got from Karl Fogel about E-Vote and
OpenSTV's last known GPL release.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:14:18 +0000 (17:14 -0500)]
Clearer instructions for how to handle the voting.
This was primarily based on feedback from Richard Fontana, who said the
previous instructions were unclear.
I also figured it's better to refer to third party documents on what STV is,
rather than the vague description that was here previously.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:12:37 +0000 (17:12 -0500)]
More instructions for the process of handling an election.
Bradley M. Kuhn [Mon, 10 Feb 2014 22:03:53 +0000 (17:03 -0500)]
The election_results table should be in the schema.
I was unsure what field type to make the results, but reading this:
http://dev.mysql.com/doc/refman/5.0/en/blob.html
convinced me that I should probably make it "text" type.
Bradley M. Kuhn [Mon, 10 Feb 2014 21:57:19 +0000 (16:57 -0500)]
Include source code link on all pages.
Bradley M. Kuhn [Mon, 10 Feb 2014 21:50:50 +0000 (16:50 -0500)]
Note earlier in the text that I was looking specifically for STV systems.
Bradley M. Kuhn [Mon, 10 Feb 2014 21:43:21 +0000 (16:43 -0500)]
Note that the fedora voting system exists,
and fix a few wording around that.
Bradley M. Kuhn [Mon, 10 Feb 2014 17:27:07 +0000 (12:27 -0500)]
Add missing comma in SQL CREATE TABLE statement.
Bradley M. Kuhn [Mon, 10 Feb 2014 17:21:37 +0000 (12:21 -0500)]
Typo fix.
Bradley M. Kuhn [Mon, 10 Feb 2014 17:17:32 +0000 (12:17 -0500)]
Remove duplicate election_tmp_tokens CREATE:
I added this earlier not realizing it was elsewhere in the file. However, my
comment is probably useful so I've left it.
Bradley M. Kuhn [Mon, 10 Feb 2014 17:12:51 +0000 (12:12 -0500)]
Symlink README.md to README for gitorious happiness
Bradley M. Kuhn [Mon, 10 Feb 2014 17:11:10 +0000 (12:11 -0500)]
Merge in branch created for forking GNOME Foundation voting system into Conservancy's own system.
Bradley M. Kuhn [Mon, 10 Feb 2014 17:09:35 +0000 (12:09 -0500)]
Remove GNOME specific text in headers, footers and related places.
Bradley M. Kuhn [Mon, 10 Feb 2014 16:58:23 +0000 (11:58 -0500)]
Fix typo.
Bradley M. Kuhn [Mon, 10 Feb 2014 16:10:19 +0000 (11:10 -0500)]
A few formatting fixes, only whitespace changes here.
Bradley M. Kuhn [Mon, 10 Feb 2014 16:09:14 +0000 (11:09 -0500)]
Explain the purpose and reasons for this project in the first place.
Bradley M. Kuhn [Mon, 10 Feb 2014 00:06:00 +0000 (19:06 -0500)]
Improve textual output for verification page.
Bradley M. Kuhn [Mon, 10 Feb 2014 00:04:33 +0000 (19:04 -0500)]
Choice lookup needs to happen here by the info we have,
which is anon_token_id.
This adds the functions and code necessary to do that.
This is probably a bit of a hack.
Bradley M. Kuhn [Sun, 9 Feb 2014 23:47:20 +0000 (18:47 -0500)]
Correct URL name.
Bradley M. Kuhn [Sun, 9 Feb 2014 23:46:54 +0000 (18:46 -0500)]
Correct variable name;
I suspect that a previous bad cut and paste caused this.
Bradley M. Kuhn [Sun, 9 Feb 2014 23:44:30 +0000 (18:44 -0500)]
Only fail if the lookup when the $anon_token_id is not found.
Bradley M. Kuhn [Sun, 9 Feb 2014 22:24:32 +0000 (17:24 -0500)]
Create a verification page,
so that voters can see how they voted online before the election actually
ends.
Bradley M. Kuhn [Sun, 9 Feb 2014 22:23:47 +0000 (17:23 -0500)]
Remove text describing GNOME Election,
although this is now as Conservancy specific as it was GNOME specific before.
Bradley M. Kuhn [Thu, 19 Dec 2013 00:10:57 +0000 (19:10 -0500)]
SELECT is also needed on election_votes for blt.php to work.
Bradley M. Kuhn [Thu, 19 Dec 2013 00:06:35 +0000 (19:06 -0500)]
Fix one other place where an email address is hard-coded.
Bradley M. Kuhn [Thu, 19 Dec 2013 00:05:03 +0000 (19:05 -0500)]
Another small formatting fix.
Bradley M. Kuhn [Thu, 19 Dec 2013 00:04:41 +0000 (19:04 -0500)]
Note about how to deal with problems.
Bradley M. Kuhn [Thu, 19 Dec 2013 00:04:25 +0000 (19:04 -0500)]
Formatting and whitespace changes in README to make it more markdown-y.
Bradley M. Kuhn [Wed, 18 Dec 2013 23:55:23 +0000 (18:55 -0500)]
election_tmp_tokens table should be created by schema.sql
This table, which is essential to the election, was not listed in the
schema.sql. This adds a CREATE TABLE command for it.
Bradley M. Kuhn [Wed, 18 Dec 2013 23:53:50 +0000 (18:53 -0500)]
Create election_voters table & adapt code to use it instead of foundationmembers.
foundationmembers was a table specific to the GNOME Foundation. This new
table, election_voters, allows creation of an electorate based on a list.
README is updated to explain how to use this table.
Bradley M. Kuhn [Wed, 18 Dec 2013 23:47:16 +0000 (18:47 -0500)]
preference field belongs in election_votes table.
It's clear from the PHP code that there should be an integer field called
'preference' in the election_votes table. I suspect that at some point there
was an ALTER TABLE done that wasn't reflected in the schema.sql file.
Bradley M. Kuhn [Wed, 18 Dec 2013 23:09:12 +0000 (18:09 -0500)]
More details on how to run an election and documentation of setup.
Bradley M. Kuhn [Wed, 18 Dec 2013 22:33:06 +0000 (17:33 -0500)]
Don't refer back to a list; just tell the user they must have election_id.
This is probably not the right long-term solution. Ideally, I think it'd be
useful if elections could be marked private or public, and elections that are
public would be listed automatically, and private ones wouldn't appear.
It seems there are some remnants in the code that make it look like someone
was going to make a step 0, which would list the elections from the database,
but that was never done.
So, I've hard-coded what I wanted here, in hopes someone else comes along and
does it up right.
Bradley M. Kuhn [Wed, 18 Dec 2013 22:26:15 +0000 (17:26 -0500)]
Make variables for name of committee running election and its email address.
GNOME's Election committee was previously hard-code here, but the code is
more reusable if it is no longer hard-coded. The variables still default to
GNOME's details, but can be overridden with the configuration file.
Bradley M. Kuhn [Wed, 18 Dec 2013 22:09:49 +0000 (17:09 -0500)]
Begin details of GRANTs needed for proper operation here.
Bradley M. Kuhn [Wed, 18 Dec 2013 22:09:12 +0000 (17:09 -0500)]
Better error message here.
Bradley M. Kuhn [Wed, 18 Dec 2013 22:09:04 +0000 (17:09 -0500)]
Note format of file.
Tobias Mueller (ideabox) [Wed, 18 Dec 2013 19:15:44 +0000 (20:15 +0100)]
Releasing the bin/ scripts under GPLv3+
Bradley M. Kuhn [Wed, 18 Dec 2013 20:43:58 +0000 (15:43 -0500)]
Add mysql command to create tables.
Bradley M. Kuhn [Wed, 18 Dec 2013 20:42:29 +0000 (15:42 -0500)]
First two steps of setting up one's own instance of just the voting part.
Bradley M. Kuhn [Wed, 18 Dec 2013 20:38:02 +0000 (15:38 -0500)]
Properly format schema.sql for MySQL & drop tables first.
With this change, schema.sql can be run directly from the mysql command line,
with a command such as:
$ mysql -u root -p -D dbname < .../vote/include/schema.sql
Tobias Mueller (ideabox) [Wed, 18 Dec 2013 19:15:44 +0000 (20:15 +0100)]
Releasing the bin/ scripts under GPLv3+
Bradley M. Kuhn [Wed, 18 Dec 2013 18:57:42 +0000 (13:57 -0500)]
Remove reference to GNOME elections committee.
Bradley M. Kuhn [Wed, 18 Dec 2013 18:14:03 +0000 (13:14 -0500)]
No longer reference removed directories.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:23:19 +0000 (13:23 -0500)]
Remove records of old GNOME Foundation Elections pre-2013.
We're going to use this to run Conservancy project elections in future, and
as such we don't need records of old GNOME elections.
I'm leaving 2013 to use as a template.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:19:12 +0000 (13:19 -0500)]
Remove references to things other than the vote stuff in configure scripts.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:15:57 +0000 (13:15 -0500)]
I'm the maintainer of this fork of the GNOME voting stuff.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:15:18 +0000 (13:15 -0500)]
Remove foundation.gnome.org directory entirely.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:14:33 +0000 (13:14 -0500)]
foundation.gnome.org not needed in this case, as only using this for voting.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:14:00 +0000 (13:14 -0500)]
Removing this Makefile.am, as I'm moving the voting one back one directory.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:13:16 +0000 (13:13 -0500)]
Remove a few additional files not needed to use this only for voting.
Bradley M. Kuhn [Tue, 17 Dec 2013 18:09:55 +0000 (13:09 -0500)]
Remove everything that's actually the GNOME website.
I'm only going to use this for voting.
Tobias Mueller (ideabox) [Tue, 6 Aug 2013 10:30:06 +0000 (12:30 +0200)]
Rephrased renewal mail to not mention renewal as we don't do renewals
Andrea Veri [Thu, 25 Jul 2013 09:32:35 +0000 (11:32 +0200)]
Here too.
Andrea Veri [Thu, 25 Jul 2013 09:15:51 +0000 (11:15 +0200)]
Convert all the relevant URLs to https.
Tobias Mueller [Wed, 12 Jun 2013 10:21:20 +0000 (12:21 +0200)]
vote: Added the votes for 2013
Andrea Veri [Mon, 10 Jun 2013 15:42:00 +0000 (17:42 +0200)]
Publish the election results for the 2013 election.
Tobias Mueller [Mon, 10 Jun 2013 09:01:26 +0000 (11:01 +0200)]
vote: Made the link to the 2013 votes visible
Tobias Mueller (ideabox) [Tue, 21 May 2013 00:13:51 +0000 (02:13 +0200)]
vote: 2013: Made candidates visible
Tobias Mueller (ideabox) [Fri, 17 May 2013 20:04:09 +0000 (22:04 +0200)]
vote: 2013: Created candidacy list
Tobias Mueller [Wed, 8 May 2013 08:41:26 +0000 (10:41 +0200)]
vote: Added Tobias Mueller as a candidate
Andrea Veri [Fri, 3 May 2013 12:03:59 +0000 (14:03 +0200)]
Add the the material for the 2013 Spring elections.
Tobias Mueller (ideabox) [Sun, 7 Apr 2013 15:08:39 +0000 (17:08 +0200)]
elections2013: Provided the appropriate redirect for section 8.3 of the bylaws
Tobias Mueller (ideabox) [Wed, 3 Apr 2013 15:02:15 +0000 (17:02 +0200)]
election/2013: initial setup
Tobias Mueller (ideabox) [Tue, 2 Apr 2013 01:39:23 +0000 (03:39 +0200)]
bylaws: Updated CSS to make the HTML render nicely in Firefox
While the previous version worked in Epiphany, it didn't in Firefox.
This version works in both. And it looks semantically better.
Tobias Mueller (ideabox) [Wed, 6 Feb 2013 15:48:27 +0000 (16:48 +0100)]
Added memberlist.py, a tool to JSON dump the member list
It has simplejson as a requirement. Python >2.6 ships it by default
IIRC. There is a version of simplejson compatible with Python >2.4.
You also need to have MySQL set up via ~/.my.cnf as the file referenced
in the imports states.
Tobias Mueller [Fri, 23 Nov 2012 21:13:11 +0000 (22:13 +0100)]
renewal-script: Make it not mail if there are no members needing renewal
Tobias Mueller [Wed, 3 Oct 2012 22:23:21 +0000 (00:23 +0200)]
get_renewees: Order by lastname instead of last renewal date
Tobias Mueller (ideabox) [Wed, 7 Nov 2012 13:24:59 +0000 (13:24 +0000)]
Updated Bylaws as per https://mail.gnome.org/archives/foundation-announce/2012-October/msg00000.html
As announced, this will be our new bylaws. Members did not have
objections, so the proposed changes will be accepted.
The changes themselves were discussed here: https://mail.gnome.org/archives/foundation-list/2012-August/msg00041.html
and a bug report was opened here: https://bugzilla.gnome.org/show_bug.cgi?id=683980
(cf. https://mail.gnome.org/archives/foundation-announce/2012-October/msg00001.html)
The HTML and LaTeX versions were generated using Python's docutils, i.e.
rst2latex and rst2html. The attached default.tex and bylaws.css help to
theme the resulting documents.
Tobias Mueller (ideabox) [Wed, 7 Nov 2012 13:20:51 +0000 (13:20 +0000)]
Bylaws were converted to reStructuredText
This translation allows further modifications. We intend to change the
bylaws and this conversion shall facilitate making diffs and theme the
resulting documents more easily, i.e. HTML with CSS or LaTeX.
This is intended to be the conversion of the current bylaws in PDF
format. Unfortunately, the source of the PDF is not available, hence we
needed to convert from the binary PDF.
Tobias Mueller (ideabox) [Mon, 16 Jul 2012 18:36:48 +0000 (20:36 +0200)]
Hopefully fixed the generation of the 2007-10 referendum page
Tobias Mueller (ideabox) [Fri, 13 Jul 2012 19:39:20 +0000 (21:39 +0200)]
Added the 2007 referendum on the directors determining the term length
It was a bit messed up as the index.wml pointed to the very same
election twice, i.e. the election_id=1 *was* indeed the 2005-10
referendum. I guess that the plan was, back when the index.wml was
built, to reference the election_id=4, which is the term length
referendum, which didn't have a subfolder back then.
Andrea Veri [Tue, 19 Jun 2012 23:18:41 +0000 (01:18 +0200)]
Add final result's announcement for the 2012 Elections.
Andrea Veri [Mon, 11 Jun 2012 17:19:38 +0000 (19:19 +0200)]
Import the ballot for the GNOME Foundation 2012 Elections.
Andrea Veri [Mon, 11 Jun 2012 17:18:54 +0000 (19:18 +0200)]
Fixed a good bunch of broken urls.
Tobias Mueller [Sun, 27 May 2012 21:40:03 +0000 (23:40 +0200)]
elections/2012: updated index.wml to link to vote interface
Tokens have been sent so people start to look for the voting interface.
Tobias Mueller [Sun, 20 May 2012 23:48:53 +0000 (01:48 +0200)]
elections/2012: Added the list of candidates