New branch 'develop' available with the following commits:
commit e1da282f919d2328d0b2c660e0da649318b76043
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 17:24:45 2014 +0200
Ensure adding multiple users are once are FAS users when adding them (if election is
set to)
Fixes to
https://fedorahosted.org/elections/ticket/34
commit 197b8cc2f985eb8a4a23db44866136d59809916f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 17:20:23 2014 +0200
Check that new user are FAS users when adding them (if election is set to)
Relates to
https://fedorahosted.org/elections/ticket/34
commit 654458e717cc2297ac5c8fd2fcecd5e96f318638
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:35:14 2014 +0200
Do not include FAS integration in test coverage
commit 5fbf34ac222e97d1d0218862d77bc2345a52e3e6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:32:25 2014 +0200
Add unit-tests for the is_safe_url method
commit d0f2ad21d71f17dc2e23bde5d2b6b21a21e2dfb8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:18:11 2014 +0200
Add unit-tests for select voting
commit 63d640f0b716e9c9a7983367c68e9b3f48708614
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:17:51 2014 +0200
Add a max_votes to 2 for the range voting and adjust the unit-tests accordingly
commit d525e27174a9fab0af29d11e3d51ccb348370a39
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:17:05 2014 +0200
Remove checking if the candidate submitted is in the list as wtforms handles it for
us
commit a564eee111e6d6f8989f4a560a5da7c5568b048e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:05:09 2014 +0200
Set a max_votes to election #6
commit 9d4fbc9b9c6b58cbc1663ace5d372a8d971425bc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:04:45 2014 +0200
Adjust the unit-tests now that Toshio voted on the election #6
commit 5d28c7e0f060b77bd02e320cd720910c2a5b9625
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:04:23 2014 +0200
Add votes to the last election added in the tests suite
commit 28196c20a8c9ca3a8b39b863a8d123b03497b1c4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 16:04:03 2014 +0200
Add candidates to the last election added
commit ee9f0edcc1d7f693e00f53bf126ea9ec413f2371
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 15:26:53 2014 +0200
Adjust the unit-tests on the UI for the new election added
commit ba3d12aeee12cd81ff1bc98eea3ac484a451d41d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 15:17:24 2014 +0200
Add a new election of select voting type and open
commit 6e4e8dfc2795a8933b996517f3ae756be7776647
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 15:09:49 2014 +0200
Move the simple voting unit-tests to their own file
commit 2553fab3c281a64c08d0c1fd216a02526ac37ce5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 15:07:54 2014 +0200
Move the voting range election unit-tests to their own file
commit 4eff4b12b5e610ce91d588572096ef9113a38153
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 13:05:33 2014 +0200
Adjust the unit-test now that we are using url_for() to build the links
commit 49f1c20f6395aa242a0286f5c77c85bc82aa3293
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 13:05:13 2014 +0200
Fix the `More information` link to actually point to the about page
commit ad3a236dae5a1cc27c6fe8447bb61a5794029506
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 12:49:06 2014 +0200
Use url_for() in the archive template to build the links
commit 020f728a5edab5adba98ba8f54c09aa5b5920d4d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 12:48:45 2014 +0200
Add link to the about page on the index and open pages
commit ea3921cbdc2d799d60e132426cfc1fc413512c09
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 19:21:09 2014 +0200
Release 2.2
commit eec5f9e659b07605ac986773fe9f0aa16fabce03
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 19:10:55 2014 +0200
Expand the unit-tests to include a test w/ no max_votes set upon creation
commit edf547bd311751b988cb7338f430f317820ab3f1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 19:08:53 2014 +0200
Fix adding voter groups w/o spaces in their name
commit 3024e69564f7c42658880e10a485be2219f4371a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 19:03:53 2014 +0200
Expand the coverage to test for max_votes not being an int and adding lgl_voters
groups when creating the election
commit 6df8b940d6fa3738b1077ab8cb5d7ef8e0c8e098
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:56:57 2014 +0200
Adjust the unit-tests now that the range voting relies on candidate identifier rather
than their name
commit f3e8b88ba555a81c732339801869ee1265cbb044
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:56:26 2014 +0200
Adjust unit-tests for the archive page
commit 0b55226806d2507150308c6a98b9a6965b890178
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:55:42 2014 +0200
Fix the range voting to be sure the user is not voting on a candidate of another
election
commit 68b674fd6016ca1891fc5a99fcddde4fdcfd9cc8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:38:19 2014 +0200
Only run the unit-tests against faitout when the tests are ran in jenkins
commit da8db6dd1f3b9bace02156d56b66b91f04738c6f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:37:51 2014 +0200
Fix the situation where the candidate.name has accent by using the candidate
identifier
commit 4c88c6076d0a9008501466d397f821f228b0f1cc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:26:26 2014 +0200
For single vote election, do the FAS integration when building the form
commit a57b481052ea8717f8ed19616af2235f809dea81
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:22:30 2014 +0200
Drop the usernamemap from the single vote election type
commit fcb7a722e2ab88dbdf4b3e2f08aecfa1b77b0b78
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:17:53 2014 +0200
Forward the usernamemap to the render_field_in_row macro to display the FAS user name
correctly
commit 2cf9c89da99cbf59f8af0666505af5ea382ebbec
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:17:31 2014 +0200
Use the shortdesc rather than the description in the archive list/page
commit 8a3cab2a37615ee30a1eb40b67dc5485f6cd0586
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:17:14 2014 +0200
Fix displaying the FAS name when the FAS integration is activated
commit 70f6a688ee6c28518b700c4a42af43dd2fd22f58
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jul 10 18:16:19 2014 +0200
Fix integrating candidate name with FAS when the election is set as such
commit ab67d9da3c91b18b116045738fcb3849775b548b
Author: Chaoyi Zha <summermontreal(a)gmail.com>
Date: Sun Jun 22 07:32:44 2014 -0400
fix unit tests
commit 76a27320602905668da31f0701bd8ee1b13f22da
Author: Chaoyi Zha <summermontreal(a)gmail.com>
Date: Sun Jun 22 07:17:31 2014 -0400
small typo
commit 3cedf3997143424e507e66ed66a66913ecc0bb91
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Jun 22 10:28:36 2014 +0200
Prepare running the unit-tests at build time but cannot be activated for the moment
commit 054b9c2fa281b8ad31d966ce5429038df440349f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Jun 22 10:26:47 2014 +0200
Include the runtest.sh and nosetests scripts in the releases
commit 7b4005fc1232d93430f2be9fe9d2ec2edc1063b9
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Jun 22 09:48:45 2014 +0200
Improve again the description of select voting
commit e0ada592094a8b28d14ebe997b3f154a631c1632
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 18:43:26 2014 +0200
Improve the description of the different election types
commit 81654b38dc56165d3590a55d9de6467600b2502e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 14:12:15 2014 +0200
Bump to 2.1.1
commit 9c383ab6f448c74c5d0ffea498f08dd295326085
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 14:10:51 2014 +0200
Adjust the 1_to_2.sql file for 2.1+
commit 41e11ede6c3400db39424bc9aa36a7c212d194e3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 14:10:37 2014 +0200
Fix missing imports
commit 9a1eb0f39ed97d1927b2c9a7d1c688afd74a1a86
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 13:00:41 2014 +0200
Bump to 2.1
commit 1d0789531dd5f0168c550ae909679227eaae6d63
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 13:04:46 2014 +0200
Install the sample/default alembic.ini file as no-replace
commit 34de8336333deacfc29b44af6ed27773f310e1b8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 13:03:56 2014 +0200
Install the alembic files in the spec
commit 1a7aef3661c3f492cb9b86d858466277693cb7d1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jun 10 13:03:04 2014 +0200
Include the alembic files in the sources
commit 4ed8622a5b1ff5a3ee52f869d8110ff5d40739b6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 31 12:55:07 2014 +0200
Take into account max_votes when editing an election
commit 2b3d71b71c9e736d22764706c72e7af86998ecf2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 31 12:54:17 2014 +0200
Take the max_votes into account when creating an election
commit 133e8cd7068ef2cb4a17915dcd88e85adcbec6e9
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 18:20:51 2014 +0200
Small pep8 fixes
commit fa2a81ad31a5d16a0bd0189fff9b7c4e760045f7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:35:50 2014 +0200
Add alembic revision adding max_votes to the elections table
commit e411466e80b773b7621da0a4c6ca5baebe4e3dd2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:36:18 2014 +0200
Ignore alembic.ini files
commit 75d8b8c2d4de5dbaf92d8f652357de9751e9a223
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:35:38 2014 +0200
Add sample alembic.ini file in the files folder
commit d623aa95bfb6cdf4db9f5c044c76a32158372dd3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:35:22 2014 +0200
Add basic alembic structure for alembic integration
commit f3828a81f02cd842720ce0d6efbaaf87aaf66e72
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:30:27 2014 +0200
The simple voting form has no use of the maximum votes/range
commit 3db0f16460486fbd7349556a403316a6c687eea3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:27:27 2014 +0200
Use the max_votes field of the election to set the maximum ranges or vote
This in the range_voting and select_voting type of elections
commit f5151e9d358307818dcfcaed9d5383be9521cfde
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:28:04 2014 +0200
Adjust the edit and view election templates to display the max_votes field/info
commit 49fd4f42cd2c7c35d054c0a6390f3edd2696690b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:24:24 2014 +0200
Add the max_votes field in the election form
commit 66873f7cfd2b57d0bbaecce07ab0356898165341
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:24:13 2014 +0200
Add a max_votes field in the election table
commit 56ba73b73c6f8d933d619a649622f46a09dc46ca
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:14:39 2014 +0200
Add the logic for vote select
For this type of vote, the user can simply select the candidates of
interest eventually with a maximum number of choices.
commit 250dd11bb1176511eba1871052a3f0c14b333673
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:14:17 2014 +0200
Add select voting as an option when creating an election
commit 2ca246e371c48e1c87c8ffab8b5afd71c01c6151
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 16:10:48 2014 +0200
Add a form for SelectVoting
commit 3097ec0cfa752acf583b75968864c7ded5332290
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 15:36:34 2014 +0200
If the election is of type range_3, call the appropriately vote_range
commit 8adf9bac8c829708693b67a614fec181f8abd622
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 15:35:54 2014 +0200
Offer the simplified range voting (max range = 3) in the options when creating an
election
commit 57dd8c62e0a8b3bd2ab4dc56d7140663f12cc41a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 15:35:25 2014 +0200
Update the information message according to the type of voting used for this election
commit a7972da3e0638f4e39219b6ec6c55e0abb09a386
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon May 26 15:34:00 2014 +0200
Have the vote_range function accept a max_range argument
This argument is the maximal value the user can give to its vote.
If none is provided, it defaults to the number of candidates which is the
default range voting mechanism
commit 084d142f281f77bfa1a73967a55a3e7ff970e8c8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:11:49 2014 +0200
Simple voting directly use the candidate identifier now, adjust the tests accordingly
commit 57d1d9a1aca15331e0b16af63556c5e69504c0ff
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:09:54 2014 +0200
The usernamemap converts the field label (username) for FAS full names
commit 5e86d4021141061bf2b6ad5a62ef9f0dfff992c8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:09:39 2014 +0200
Make use the usernamemap for range voting
commit 4769fb448f516ddce61f4f034750c4efc92618f0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:08:34 2014 +0200
Allow to rely on the usernamemap also in render_field_in_row
commit f7d5bbb5aad4f141703d2cd7b1b3860cbcb302b8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:06:55 2014 +0200
The form now provides the candidate id directly as value (instead of its name before)
commit fbf477513c8a30aad0ed60c85929adf5b2007263
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:06:34 2014 +0200
Fill in the usernamemap for all the candidates
commit bbabce9d4e0600695d4407c9526160865920645b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:06:06 2014 +0200
Drop the cand_name dict as we already have the usernamemap dict
commit e301f215db0680942be45d58bb8200438bda5f63
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:05:19 2014 +0200
Fixed presenting the fields of the form with their appropriate label/value
commit ee997da69006d26a3aa16588d45f528e64543cba
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:04:38 2014 +0200
If there is a usernamemap specified, use it instead of the field label
commit 3ab325d8def59207966c36f29158b900e09ebd3a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 15:03:57 2014 +0200
No layout change when confirming for the moment
commit 5de933743873487ca7734a6ca308dcc6a17bdc8e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:44:04 2014 +0200
Fix the tests for the change in the simple voting processing and integration of
wtforms
commit 6d8882723355289f3d51a532501db4a193468d45
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:43:33 2014 +0200
Ignore the [more] link for the candidates for the moment, we need a better solution
commit d8b8aeb2d76b254db2d00fad1d56749a6b87861e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:43:01 2014 +0200
Use candidate instead of candidates to be consistent with the old behavior
commit a9059c70df20abd3dd2b7251df471cbc7d3ac2b7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:30:56 2014 +0200
Adjust the simple voting template to rely on the form just added
commit 25cca0216f66a99a019e521090d7be59af730bb1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:30:38 2014 +0200
Port the simple voting logic to use the forms just created
commit f6666cd0c3f939c6f85c8a168a2e362cf65c335e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:30:15 2014 +0200
Add forms.get_simple_voting_form that dynamically generate the form for simple voting
commit a1f287519ee095900fe0a4af0b56d81b25f17548
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:19:07 2014 +0200
Rename get_voting_range_form to get_range_voting_form and VotingRange to RangeVoting
commit 5061c4a98c6169400a8d9e7f033730573839c0d9
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:09:16 2014 +0200
Fix the tests for the change in range voting
commit 6811a21f8381b54edd25ddf1d451239e60c59ffe
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 14:08:51 2014 +0200
Allow to vote up to the number of candidates
commit 0f5cf18c7bfc969a8a13c1c12e431e31a1c65fa7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 13:29:14 2014 +0200
Adjust the range voting form to make use of the wtforms form created for it
commit 9d1707b7212a7bf90a67e5509f7373803b04c59e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 13:28:06 2014 +0200
Update the range voting method to relying on a wtforms form
This adds CSRF protection to the voting pages and takes care of the data
validation directly in the form.
commit 8ff016e89f22613e229853611193ef9ff9594225
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 13:26:57 2014 +0200
Add macro to render the choices when confirming a vote
commit e89ddba7b4e08e09ead96db47d2833344afa71a8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 24 13:26:32 2014 +0200
Add dynamically generated form used for range voting
commit b9d18e6bb109a328e15c3ab29f49e8138719a5fa
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu May 29 18:30:17 2014 +0200
Let's be a little more precise/concrete about what the check allows
commit 0b10c912df80c4aef2bba1555f455a15255dd542
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu May 29 18:25:20 2014 +0200
Comment the logic of the conditions to select where to place the limit
commit 27d811cd65391f3a866d732a111a2ea6f1c67049
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 19:00:25 2014 +0200
Show the actual results in the result page
Rework the result table to display a nice red-bar where the limit between
the elected candidates and the non-elected candidates is.
commit 391a1633463fdec9f7a8e4c5c46ac1341cc598a8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 18:58:32 2014 +0200
Avoid adding empty legal voter groups
commit 5948df55e04a6a58ccc1d969aac2b5b6de784997
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:57:49 2014 +0200
Cover adding admin groups when testing admin_new_election
commit 482b27808dd3c56c77ab54bcb0c5c064976e060e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:55:37 2014 +0200
Split the tests for editing admin groups or legal voters into their own method
commit a4cf8fee3d2eb839fdc05ef00935d40fd51cf390
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:50:56 2014 +0200
Add test checking the behavior when the user is not part of the LegalVoters
commit 9db4e630fadff86da79e8ca5fb6eda0cca642ecb
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:48:28 2014 +0200
Add test for editing an election with legal voters
These tests are checking how the application behaves when we add or remove
legal voter groups
commit 9e97080a373fa87b4e8823673ddd54e81efcbaa4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:48:04 2014 +0200
Adjust the tests so that the FakeFasUser is part of the group allowed to vote
commit d0ca20d91c0d8cdf4e3d41c97c2e1734e8801276
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:47:48 2014 +0200
Specify a group of user allowed to vote on election #3
commit 91e09ae7a6d56d9d81e1bbccbcd2f6b566c921f0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:37:20 2014 +0200
Add test checking the error message if the user has 0 groups
commit ee565606178a3d8723128b579a580ea388c5add7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:36:39 2014 +0200
Fix the unit-tests so that the FakeFasUser used has at least 1 group
And fix checking the error message with cla_done = False
commit c7d032be2e9309d41f0c13f44c65c9109988a120
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:34:49 2014 +0200
Fix the @login_required to check to cla_done and groups > 0
This commit fixes @login_required that was checking cla_done and returning
an error message about CLA+1.
We now check cla_done and groups > 0 and report an appropriate error message
in both cases.
commit 21120e7c6c1276f57cb54e7f75224990e4a3db64
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:30:52 2014 +0200
Add test for the redirect from the voting page is the user did not sign the CLA
commit 54fc52de4aba4ab46e84ab2554bccc1f9059c84c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:12:20 2014 +0200
If there are legal voters and the user is not one of them, redirect him/her back
commit e5af563f7fbebe59667a172e5ec1e6ba998bb5c6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:10:59 2014 +0200
Use safe_redirect_back instead of forcing the return to index
commit 592dd35a2f2a52b6ef7b5b57f91c2bd5dcdfea5a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:08:03 2014 +0200
Voting to an election requires CLA+1 at minimum
commit 4569e790f12eede9d634b26eb6ee6b15345e0fab
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:57:02 2014 +0200
Implement legal_voters adding/editing/deleting
This allow the admin to restrict the election to one or more FAS groups
commit 1d7264f803e4e654696d46f112baf992be485489
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:25:45 2014 +0200
Simplify vote_range and vote_simple since they are no longer flask endpoints
- We can directly give them the proper election object, no need to query
it twice
- We can skips the tests we do earlier (avoids doing them twice)
commit 886418b0c3878a8bfe470b73ed8b9aa116b6fd7a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:22:04 2014 +0200
Adjust unit-tests to the unique URL for voting
- Replace vote_range and vote_simple by vote
- Do not test for redirect as it will always return the proper view
commit 8df30094f79b02ca64d451a30428dcbb750e320a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:21:40 2014 +0200
Adjust the action url in the vote templates now that there is a unique URL for voting
commit 60e9ce8e58af5a14c082bdf3b5d67e8be3ad4895
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 17:03:07 2014 +0200
No need to have different URL for the different voting type, one is enough
commit 9f9e14539c552fc57474eb7f78d42777eb10b44a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:36:36 2014 +0200
Explain a little what the admin groups are
commit 7e183b233edf8c75d8c497651b1d867c6e943723
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:29:35 2014 +0200
pep8 fixes
commit 2f8d08da49c29f86dd8ee51abb14b9c126807643
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:28:52 2014 +0200
Add unit-tests for the is_safe_url method
commit ea8695b071a6f9b511a1b35b4a88423ffae7fbfa
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:22:06 2014 +0200
Add unit-test testing the addition and removal of admin groups when editing an
election
commit 95180f86f8f4f2fe74fe42a3fcb09b37825c923a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:21:56 2014 +0200
Sort the election's admin groups
commit afe99b9ff2c75fa00d0c7b131ba354aba0258304
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:16:28 2014 +0200
Test the is_election_admin when the user is and is not in an AdminGroup of that
election
commit 0dad615372f1185b2323492826352cce24680bfc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:16:15 2014 +0200
Specify an admin group for the election #2
commit 20270e439058593b3fa4338f1abf35607b34ece5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:10:12 2014 +0200
Enhance coverage of the is_admin function
commit c950dd70fb4438ff3ef562abc126ea0e6dafdd14
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:08:22 2014 +0200
Elections admins are now admins of every elections
commit a8a1cf256906570a686a80402b454e3a1c2048f6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:08:07 2014 +0200
Make the tests pass offline
commit 5f15df340483eda18948bf86a658ce878f583e5c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 16:00:34 2014 +0200
Implement the election admin groups
This allow the election admin creating the election to specify multiple
FAS groups which will be able to view the results before they are made
public without having to add them to the election admin group itself
commit 64ef428881318f6681309cb505836e04c1f5b5ad
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 23:16:09 2014 +0200
Fix the reverse proxy
commit 5f4fb08d72b731641983d90ca2e91ba5a19bbca1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed May 21 11:24:57 2014 +0200
Add elections.proxy and set elections as an application behind a reverse proxy
This will ensure that flask.redirect is using ``https`` where asked.
Fixes
https://fedorahosted.org/fedora-infrastructure/ticket/4369 for elections
commit c396bfee925695b69dcc4af40feb60b6d2f64d4f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 3 16:06:22 2014 +0200
Remove un-used script
commit b9239c3471ee5e675781603625b581c5e1f90d68
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 18:31:53 2014 +0200
'##' is not allowed, and @abadger is right '# #' doesn't look
right either
commit 463a39149837573e5a54b6ccdc1d495369427209
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 18:30:04 2014 +0200
Change comment as suggested by @abadger
commit 4edf054bed02df39f38c6b6eae7372b50de0ab29
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:51:45 2014 +0200
pep8 fixes on the tests
commit f90a3e1244f61f9e02f9be89c226408c53cf688a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:49:19 2014 +0200
pep8 fixes on setup.py
commit 2a6f132b4eb2152def61338ac32bfa4f0f627aed
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:49:12 2014 +0200
pep8 fixes on fedora_elections
commit ed30baeed1586ce6a6ed1240d0b8d4db4c85eadc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:45:50 2014 +0200
Convert the boolean into integer as in the DB model (and required by postgresql)
This should fix:
http://jenkins.cloud.fedoraproject.org/job/elections/3/
commit 4085c81b5fe9638f1d8f7a28d05f47a78aed0e5c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:37:43 2014 +0200
Adjust the requirements file
commit 27a626c95140c403690febff21ae8fbe19eba22a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:24:41 2014 +0200
Specify where to find the tests so that python setup.py test works
commit e1743b69b8fb3c817b4c7f99762e03bbe66ff724
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri May 2 17:20:25 2014 +0200
Fix dependency in setup.py, the package is named kitchen not python-kitchen
commit 335216a362dfa195db658c79861152e910147bff
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 13:26:17 2014 +0200
Fix the database session for the forms, if we want the tests to run :)
commit 3003ed990250b1119632f5b5c167762e6e852cc1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 13:25:43 2014 +0200
Add tests for the form fields validations when creating a new elections
commit 2d559a4511709dd39f9f76e23a59c518e90a7bbc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 13:24:49 2014 +0200
Add missing import and fix the validate_shortdesc to actually be used
commit f9135b01ea708d06b0d6f39d880471bc8eb9e6e0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 13:00:11 2014 +0200
Add a little bit of documentation in the admin tests
commit f3058767377893a8dc721f7217a557fb92e5a934
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:56:56 2014 +0200
Fix import and session for the unit-tests for the elections and admin controllers
commit d7de79a37e44daac1f5735680fdca423daac6f33
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:56:44 2014 +0200
Add unit-tests for the admin controller
commit c01c453d657135dc6a172d9b3ccfa097e3162ae0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:55:46 2014 +0200
Update the behavior of the ForeinKey upon update or delete
And move the declaration of the relationships after the declaration of
the columns
commit f0e2c775698cef9196747bcf843740ea1b21ccee
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:55:16 2014 +0200
Handle error if someone tries to delete a candidate that already has votes
commit a7d305014f1d7c4690814cac017404018641e2b6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:54:38 2014 +0200
Add couple of candidates to the election #4
commit f14454d042f8a9935bcc3b8c840c83465163af46
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 12:54:27 2014 +0200
Remove un-used imports
commit 0d4a3b8c4fba707172c8c5a811afe1e85d391503
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 11:23:26 2014 +0200
Add unit-tests for the elections controller
commit 4e28e9794b06919b04b6b3f6a01a94e1f0724b55
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 11:23:11 2014 +0200
One more place where we do not want to cover FAS integration in the unit-tests
commit 2428ccc7978e346a61b64c88e63ddcea02782386
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 07:45:08 2014 +0200
Ignore in the unit-test the possibility that get_valid_election does not return an
election
commit 348390a034ea613436cedec7e53566e0b1f93211
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 07:44:20 2014 +0200
Ignore FAS integration for the unit-tests
commit db25b04e2d35c257744c6735d1dff52e75438340
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 17 07:43:40 2014 +0200
Fix the simple voting, make sure the candidate submitted belong to the election
And handle case the candidate id submitted is not an integer
commit 8d3c1855558a9fc914c962f7eec1cdd8b1db2a0b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 20:07:42 2014 +0200
Handle the case the id submitted is not an integer
commit a1d3247c1f1cb227b24d1d83b9540f96371b6aa3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 17:47:40 2014 +0200
Ignore FAS integration for the unit-tests
commit 81b738881b226f502230f6887f4c08ff3cf036cc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 17:47:35 2014 +0200
In case the input is invalid (not an int), the next_action is vote
commit c9c2e293dfc0c193cd4719a7dc1da6e2419eeb3d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 17:31:18 2014 +0200
Fix typo in the Preview (in case of wrong input)
commit d5a6b63969665452869e7d42321b289973dc514e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:54:47 2014 +0200
Ignore case where we would not get a valid election object from get_valid_election
commit 4a1e7f0d8f5d7d7e75249c6780463a4b3fa06301
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:54:03 2014 +0200
Adjust the candidate.id for the candidates that were added to elections #3
commit eaacafa2e7474483a78032fbd8e1e219f7cdd461
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:53:44 2014 +0200
Add candidates to the election #3 and adjust the candidate.id
commit a1b4dd86cf631ca5b476ce26bda40fc784da0d41
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:43:57 2014 +0200
Ignore case where we don't know the election's voting type for the unit-tests
commit 0f0999cdc8bfc66340cb01c3d8f626637542f123
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:39:03 2014 +0200
Adjust the flask tests to new election added
commit d72c0b774fd7464f084ae2654bf7f2687ebdf7de
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:38:40 2014 +0200
Add missing shebang to the runserver.py script
commit b405431a6f53baf4688066cfb6251d7bdab45784
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:38:19 2014 +0200
Add votes to the new election #5 with simple voting
commit a9a88d19695e8ab35d5b886d0c0d96aec4f8bef1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:34:38 2014 +0200
Add candidates to the new election having simple voting
commit 2108d3f0b011e134737fd179384f29f9c3434519
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:33:55 2014 +0200
Add a new simple and open election and adjust the tests to this election
commit 2360918db565875762492b2cba255fcb6958075f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:21:46 2014 +0200
Add missing import in the elections controller
commit 1c471653aca8a1387e707369d4ee62cb40ad5887
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:21:08 2014 +0200
Add missing spaces in flashed messages
commit e1cedcb0f8429309549e845045f25c85181f3ae5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:20:14 2014 +0200
Remove double spaces on a flashed message
commit 643f6b5bc0307aae55eb67a5b20a8961d558128f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:19:04 2014 +0200
Do not show voting page on election embargoed, these are just ended embargoed
commit 601adeee338e5c68e2de6cc202bb4c0c5268ed7c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 16:05:14 2014 +0200
Update the auth_login method to remove duplicated checks
commit 886856273c7e7a62b70449648cae6301ccb79ffd
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:56:03 2014 +0200
Port the flask applications to the ModelFlasktests class
commit 322900eceed396e8df3d29c60a62d148020b4963
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:55:43 2014 +0200
Add a generic unit-test class for the Flask tests
commit d3264a500fbeb29872d76c7792c927e99046abdd
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:23:40 2014 +0200
Ignore fedmsg in the unit-tests
commit 5d541bc49e142b9f1d61843ae36e866e5796ad08
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:22:05 2014 +0200
Add unit-tests for the generic flask endpoints
commit 77120e65584ef4a0ed22eb6b6d344ef97e1b783c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:21:11 2014 +0200
Add some more votes on the election #3
This way we have someone that voted on an open election
commit 0694480aa537e1e26ccf28454182d4630e81d67a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 15:20:50 2014 +0200
Ignore some other lines in the unit-tests coverage report
commit 5b6cf8406f527ae32e4bc099f7b6192ddc7ebcb7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 14:44:27 2014 +0200
Add missing docstrings
commit 3417ef13a19fbb7213391a772b9d95829af51f98
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 14:42:39 2014 +0200
Ignore reading the config file specified by environment variable
commit 0f7ab3f47f16be433e191e7b552837542ff935bf
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:28:29 2014 +0200
Ignore the .coverage file created when running the tests with coverage
commit ff2512d044efea1642f3be0f6459c14ab8e6e81d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:27:54 2014 +0200
Add the runtest.sh script for easy testings of the project
commit 78bd31f3613a2f295aa2941a4239992172c42d99
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:27:32 2014 +0200
Add a local nosetests script ensuring we run the proper version of the libraries
commit 5b8520b7984c07b6ecc0e79af8cfa2aa7d4693e9
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:27:17 2014 +0200
Add unit-tests for the Vote object
commit cbc05d5e9efe477d87fe941d9dcc0d921ad9a822
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:27:03 2014 +0200
Add unit-tests for the Candidate object
commit d065f1dc564f4c42f3dc8c7bdc8e89ceedacb706
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:26:34 2014 +0200
Add unit-tests for the Election object
commit ff4a92f6ae64458d338eae2d2e041a6558c8065f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:25:29 2014 +0200
Add first code for the unit-tests
Create the basic `Modeltests` class that all the tests will inherit from
Create basic functions to be used when testing the flask application
commit c0fcc6dba773cc23c3086dbd8641dbfb996e2d65
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:24:58 2014 +0200
Ignore a small piece of the createdb function in the unit-tests
commit 10b7b4dd5a7dc557a42f415ab382add5a3bbcf67
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:22:11 2014 +0200
Order votes by timestamp
commit 7f3421ac5bd012e04867c4bef414d70288d64efd
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:12:17 2014 +0200
Format the start and end dates in the json representation of an election
commit a767d3636837ceb540cff432c05b179c24478903
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:09:33 2014 +0200
Add default datetime in the timestamp field of the Vote table
commit 596188224686044608755f7c6258c4082fbca1f4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:08:34 2014 +0200
pep8 fixes on the controllers
commit aaf5a1bf1446c0961428a1b887c77107c816dbb5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 11:08:34 2014 +0200
Make the minimal flask version be 0.10
commit b54707b48442a34f1357b94882a9aed31474f31d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 11:05:52 2014 +0200
Remove current tests
commit 5fef3e05a9dcc71949a3caa3c80d1133ed3e788e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 14:11:06 2014 +0200
Adjust the database mapping of candidates_are_fasusers to its type in the DB
commit bab918725b43cb1a25c2d15d440adcd8e8e9800a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 14:05:09 2014 +0200
Rename the column usefas to candidates_are_fasusers
commit eae19ae58c000c08abe70454e71b58a4846444bc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 12:21:10 2014 +0200
Remove import of the redirect file since the file no longer exists
commit 64d18ad2ea0af70ffd1b5f1f603e670143bae73e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 11:04:14 2014 +0200
Make the runserver.py file executable
commit 0d2e4a2ba7fd571a4b572ca34ee657fc4a2b16cb
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 10:47:35 2014 +0200
Give a warning information message to admins seeing an embargoed election
And format a little the warning messages (as orange)
commit 22ecaab36ee797d4c8ffe3e723e64ba877400c2e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 10:34:38 2014 +0200
Split the one controller into three
- __init__ has the main endpoints where no login is necessary
- elections has the elections related endpoints (voting, results...)
- admin has the administration related endpoints (create, edit, delete...)
commit 16b81168cc914d2ae92ea3af7ba796bb838a7b0b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 10:34:20 2014 +0200
Remove the redirect.py file
commit 29a5cdf9badaf5c9f0e386f247d74a3c17e6d717
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 09:46:06 2014 +0200
Adjust the flask application for the new template paths
commit 75fa83d7a06fd33dd9e1f76155d396c0e2adb9a2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 09:44:09 2014 +0200
Move the templates in the `election` folder one level up
commit b40374022aab739390f05de900ab92fad34ec597
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 16 09:43:46 2014 +0200
Move the index template one level up
commit c32c678e06b80627f2387a2d6f55a86fc8af94dc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 10 13:49:47 2014 +0200
Publish fedmsg messages upon adding, editing and deleting candidates
commit 33049c3ec5446e3aef79dedbf10035d639d071e8
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 10 13:49:23 2014 +0200
Add method to convert a Candidate object into a json representation of it
commit c2f34d0d6d429ba934befcdcd91fbe9df170e3f3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 10 13:28:13 2014 +0200
Fix the conversion of the election objects into a json structure for fedmsg
commit d64c2469bd67fa3c4827de7824a0194d96e249b0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 19:47:44 2014 +0200
Broadcast on fedmsg when an election is added or edited
commit b819dff43d8537d0eacf837b36ee6e1d83be223c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 19:47:24 2014 +0200
Add a json compatible representation of an election object
commit 03d975e8c5575cc0fa10a2a6336d08e8b4427085
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 19:47:07 2014 +0200
Update the content of the fedmsg.d folder, simplify it
commit 64e3783b7f7a44afb1ef438ec9d8de084b052b80
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 3 12:42:38 2014 +0200
Bump to 2.0.2
commit 5ae899dddb2452baba9990387ae7f354d1fd696d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 3 12:41:16 2014 +0200
Fix the is_safe_url method, the import differs here
Signed-off-by: Pierre-Yves Chibon <pingou(a)pingoured.fr>
commit 7590a412bee331b738d6ec552d0579d521ed844e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 3 12:23:31 2014 +0200
Bump to 2.0.1
commit 6dc16a411c54055dba62a1ddd4737b6fff7c05be
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat May 3 12:20:09 2014 +0200
Fix redirection bug in the login mechanism
commit a10ef87209a994f3d69ef57f0e29c9a965c74672
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 18:25:34 2014 +0200
Update the changelog date for 2.0 and changelog content
commit d5d287b0b3bcf7c92bec837eea1bda1b6e58c269
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 15:25:25 2014 +0200
Install the update_1_to_2.sql upgrade sql script to /usr/share/fedora-elections
commit 949f51fdc919644f9bf7932cb251f85e60b16c21
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 15:22:20 2014 +0200
When retrieving vote counts, only consider votes above 0
commit 252b6ad7b39ba6f4fbd9f13c4a3c208fc289f5e0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 15:10:24 2014 +0200
Little css fix to have the same padding on each side of a table cell
commit aaa0d3a17c2bf2bbf783d47e5a3a9519cce2fc95
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:51:12 2014 +0200
Adjust the `Vote now!` links in the open elections tab
Now the `Vote now!` links are only shown if the user has not already voted
on the elections and if logged in, otherwise the links are shown
commit e4da32f3714c46b22524b79ed249c600c869438c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:48:16 2014 +0200
List all the elections to the admins
commit 541acaea6ecf57f4272cf05c9e4200fd0f6f1a3c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:47:39 2014 +0200
Order the results returned by elections.search() by election date (most recent first)
commit 5fdc2ff6d4aad1db097e5dc367a98a80ed3e46e3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:34:07 2014 +0200
If the user is authenticated, only show election that the user can vote on
If the user is authenticated, retrieve the list of elections the user has
already voted on, this list is then used to only show the link `Vote now!`
on elections the user has not already voted on
commit 5563ac9b53533ba42b18832f92288f576ad3a4a3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:25:20 2014 +0200
Set flask.g.fas_user to None upon logout
commit 1dd33cd7e5142b85ab8363393da9a102a6538dd1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 11:24:47 2014 +0200
Add a dedicated is_authenticated method and use it in the decorators
commit e22989e22bda006680fa66120aa0f8525f74e07f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 09:55:33 2014 +0200
Add sql upgrade script, allowing to convert the database from elections v1 to v2
commit 8828a99bc94937aba2ab6d0e94400c0795a80526
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 09:50:10 2014 +0200
Fix ordering of the imports
commit 172705470099f79a1e79275664779a6f87282d99
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 09:48:57 2014 +0200
Fix import the configuration file specified by the environment variable
commit 0ff423eece62b682a11417e1186c86b8287b115b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 09:33:56 2014 +0200
pep8 fixes
commit f3822681249c696d2e801628f1f84516911d08f2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 09:31:55 2014 +0200
When importing multiple candidates flash the number of candidates imported
It is simpler to check if all the candidates were imported correctly and
easier to read.
commit 3b425fdf6531623e7fcd8f67015283ed08615341
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:53:53 2014 +0200
Cover case where there has been 0 votes, thus fixing the division by 0
commit 01b2923f9e5300db632dd3dfb24b26547800f4ab
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:53:16 2014 +0200
Give the total number of candidates in the view_election table
commit 8f69bc5388e1ba6c291261f6e60c8dab7858d13c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:53:01 2014 +0200
Fix the default title in the base master
commit e914ab8ed631981fdcb229c63537f2c3bb8130fb
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:52:32 2014 +0200
Fix the order_by date to order in the dates in descending order
commit 44a76c1c3570f198fb8438bb16293339bfaee29f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:50:25 2014 +0200
Change the __tablename__ from electionadmingroups to electionadmins
electionadmins is the name of the table in elections 0.x, so let's be
consistent with it instead of requiring a rename of the table on the
database
commit c1f2f2bba9f305688f51c0d414444fc800927dd2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:48:22 2014 +0200
Remove the `role_required` field in the electionadmingroups table
This field does not exist in elections 0.x and we do not have the
information to enforce the check anyway
commit 0bc6fb68cd65719aaabe04ca5645a7ab3c0c6040
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:43:27 2014 +0200
Change the embargoed field from Boolean to Integer
The embargoed field is an Integer field in the elections 0.x database
so revert elections 2.x to the same field format
commit dfea6d05f31a04e9aabe2325699d97648c5db60f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:41:05 2014 +0200
Rename the number_elected back to seats_elected in the elections table
The field number_elected was named seats_elected on elections 0.x so
let's rename it back to it to avoid changes when updating.
commit 70efbf0423542cbb150a43f21931b5d89c156837
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:37:59 2014 +0200
Remove the frontpage field in the elections table
commit 8485b0d3b077be45290ca07e4fafeef3480b62b4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Apr 9 08:25:34 2014 +0200
Rename the field `election.summary` into `election.shortdesc`
shortdesc is the field used in the elections 0.x, let's keep using it to
reduce database change when updating to 2.x
commit d6e56d0857713d896ae8be0645230041b1b4d137
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Apr 8 17:50:08 2014 +0200
The first release will need to be 2.0
commit 1b818c871f5aeb243b2192c9251679e2246e0bfa
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Apr 8 17:49:16 2014 +0200
Include /usr/share/fedora-elections/ in the spec file
commit 3a35333eb6ec75bb480c6712873c3cea6290f99c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Apr 8 17:48:50 2014 +0200
Adjust the spec file to correspond to the configuration file
commit bac22ba4ae8a224ef763f2ea6ecd5f73712e541d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Apr 8 17:47:21 2014 +0200
Fix the createdb.py script regarding jinja2
commit 8827077137926c4c1a73ed56d6231339b7007296
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Apr 7 22:42:33 2014 +0200
The spec file has moved to the files folder
commit c961125a02b760df72142f540a3f34b94cd5195c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Apr 7 10:25:12 2014 +0200
Add example configuration file explaining as well all the configuration keys
commit 0174e654b3caf5da905f7ac278cbd23aef5eb63d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Apr 5 10:31:15 2014 +0200
Simplify the .gitignore file
Most of these files are and will not in this directory
commit ed9514adb75cbf814076630450389607053831fc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Apr 5 10:29:22 2014 +0200
Ignore the build and dist folders from the sources
commit 52a5cba80f42056842e6a8441050d03c8e7459f0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Apr 4 10:28:31 2014 +0200
Update the spec file to the changes made in the setup.py and directory structure
commit f90fb50ca4fde0b6225e5a29da26af6b2382094c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Apr 4 10:18:47 2014 +0200
Include a MANIFEST.in files listing which files should be present in the releases
commit 8cc8e590cfd45f1ba38b63c910771f22f00661fe
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Apr 4 10:18:41 2014 +0200
Update the setup.py script
- Update the list of dependencies
- pep8 fixes
commit 13a840f6d7e39f21de2a1027a643784504b6a92e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Apr 4 10:40:38 2014 +0200
Remove configuration key that is not used anywhere
commit d89d6a63d869f013dec7090860b2e3b0adc83bf5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:14:29 2014 +0200
Remove the `shell` script now that there is no longer development.cfg file
Since we have no longer `development.cfg` file, the shell script becomes
a simple call to either ipython or python, so there is no longer interest
in keeping it around.
commit 5bb35e30742c8e0426a6744b24571ccedc692042
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:13:09 2014 +0200
Rename the example wsgi file for fedora_elections
commit 0440e7d01bddcd82225d89aacdcc5eee332c48c0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:12:39 2014 +0200
Small adjustments to the example wsgi file
commit ab2c9025574ef3165d5ff391110390af6f70ebbf
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:10:39 2014 +0200
Rename the example apache configuration file
commit ccbdc1c3fab7f02e6660798c4cd6af8190ebb263
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:09:51 2014 +0200
The apache configuration file should be commented out by default
We do not want to have the application running by itself after having
installed the files/rpm.
commit 50fac823bbc76620572625b2e3a344f41c43b39a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:07:05 2014 +0200
Remove the no-longer needed configure script
commit 7d7ecb548e82077863113cd439144e3fee814386
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:06:33 2014 +0200
Ignore .egg-info files in the git
commit be012883e0bfacb0862efbfd78150d0ba20e7d71
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Apr 3 11:05:59 2014 +0200
Move the spec file and the sample configuration file into the files folder
commit 9bdd75533511a4c4055538bda66320c879bbda4c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 17:07:36 2014 +0100
No need for the runserver script, elections can now run with the default
configuration
commit 948e0b2172f5b461407ff6937338f889e3d73b1b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 17:04:48 2014 +0100
Add a generic is_election_admin checking if the user is in the admin group set for an
election
Use this generic function when checking if the user is allowed to access
embargoed results.
commit f03be6fe791e02dbece28de0582491dad698ccbd
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 17:01:53 2014 +0100
Rename the is_elections_admin function to is_admin
This is more appropriate since that function relies on the admin group
set in the configuration file.
is_elections_admin should rely on the information set on the database
in relation to a specific election.
commit 0e9dcb4ddde797d2b0d6d0a8591a09981841bc3d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:34:23 2014 +0100
Clean configuration file
- Change from fakefas to stg
- Remove username
- Remove password
- Remove unused configuration key
commit 2503679ec209f6a9aaabcd2a2df5465383ae5be1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:30:34 2014 +0100
Fix the FAS2 client insecure settings
The boolean in the configuration file specify whether to check or not
the ssl cert, but the insecure works the other way around.
If you want to check the ssl cert, you do not want to be insecure and
vice-versa.
commit 6fabe4224fbedb92fd3b66145b21be7cd901ef61
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:13:33 2014 +0100
Fix the status property of an election
In the election creation form we indicate that the end_date is included
in the voting period (vote ends on end_date at 23:59:59).
This commit fixes this by checking dates instead of date/time and making
sure the end_date is included in the voting period.
commit b819e6fcc23e5d809a34577b75570f36d7ac4fa3
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:08:57 2014 +0100
Provide in the election result page some statistics about the election
commit c1ae7d4193b04de6c0d19056563cb7bfb5ce44fc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:08:31 2014 +0100
Add method in the Vote class to retrieve some stats on a specified elections
commit c622d533ccf7ee080afefce453fc9f478c555f39
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:06:50 2014 +0100
The FAS client is FAS2 not fas2
commit 14218287820e0d8a1f7bdf656db37ed76d2d9d63
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:05:46 2014 +0100
Small style change and add information message when displaying embargoed results
commit 1ee68bd081697057fbf7aebab2d6f21af31ace60
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:04:18 2014 +0100
Mark with a red starts the field mandatory when creating an election
commit da248343121b0074e64390da455243738c6f2265
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Mar 27 16:03:54 2014 +0100
When running elections2 locally, activate the debug mode
commit 4bb4212a5df890987abe8f6d0ac0765aca134bb7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Apr 1 08:09:14 2014 +0200
Specify clearly that URL are optional when uploading multiple candidates
commit 9cdbf0d7e5cc7c904bdbfebd8eecd6f9b29a1084
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Feb 20 12:04:07 2014 +0100
Add link on the admin page of an election to import multiple candidates
commit 2267ed30df3358ae9316bc1a38ddb5d4b322dc99
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Feb 20 12:03:19 2014 +0100
Add the controller to import multiple candidates in one go
Fixes
https://github.com/fedora-infra/elections/issues/5
commit 3dfb4badea57f434baf2720b45c42f09b32e610a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Feb 20 12:02:47 2014 +0100
Add the template to add multiple candidates to an election
commit 9a01f6cde158b6fb1a1b68f40be33a89626de2dc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Feb 20 12:02:05 2014 +0100
Add form to add multiple candidates in one go
commit 4f51e60e9c1bfa5f3fe4ff07ee75f36791b90911
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:57:26 2014 +0100
Update the template used as front page of the admin section
commit 638ce919abe5a4b332e2044edc456afaccc3eb36
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:44:37 2014 +0100
Add a little text to the front page of elections
commit 0b57092b04ce971f7669d0f16e088eb6119c3a84
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:37:47 2014 +0100
Remove the frontpage boolean/checkbox from the form as we no longer use it
commit d715cde71ef0f06dfb6e59af79f9be9bfa7ed1cc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:37:28 2014 +0100
Small css fix to give a little space around the tables
commit 2c9719c0c4322fb6a6f4a0887f2a6c4504e751f1
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:37:16 2014 +0100
Change the front page to display some information about the current, future and past
elections
commit 501f9e3fd5d41fba45778e3cff60dd592a38d3da
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:34:57 2014 +0100
Add tags to display the menu correctly
commit a287d95048914a3e20ad7a184ad557c3234a7fb4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 18:32:40 2014 +0100
Fix the Election.get_open_election method and add Election.get_next_election
commit 55f70d5fd973d5c095f2eac72eabfc8d2ab31c48
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:57:26 2014 +0100
Update the template used as front page of the admin section
commit d1045167275643df34016c080fd17dd681e53f7f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:18:55 2014 +0100
Rework the add election form
commit 2d184e38daa10bb1ba44e05ef59845e3cbcb2512
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:54:21 2014 +0100
Remove images we will no longer use
commit 37c1b47a73d2bb675f52ba4a4ab3adc0306d74f0
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:41:47 2014 +0100
CSS fixes: bring back the coloring when validating a vote - remove unused css
commit 64094d8701ca528348ef3021ad8096b2812d9b0a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:18:55 2014 +0100
Rework the add election form
commit 1fb2c18306b4ed62c84370c6b88bb51c8fba87e2
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:14:45 2014 +0100
Fix the page for adding a new candidate
commit d8c46f4f2f9512f8ae815e294779cd15d027a464
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:57:50 2014 +0100
Add dedicated macro to present the fields of a form in row
commit 13b2d33852a8c1abbce09707511ff5620a2b1e51
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:57:26 2014 +0100
Update the template used as front page of the admin section
commit 0425984ffa3aee79ae22a25f59e594061a047919
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:57:10 2014 +0100
Inform the user if we have no election on the front page
commit 37ceb8138d6e8530df2c9ac54ef67cc77206ef4c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:56:56 2014 +0100
Update the base template to the new theme
commit 110175c808f69533993e88aa470501b35769fc3e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:55:58 2014 +0100
Add the koji.css our base and the elections.css dedicated to elections
commit 23c28ff91f2bb32bb463a0d627e7313b3364a476
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:55:34 2014 +0100
Add jQuery CSS
commit 047ffaff7e27d5ffa425a1f9ffe19ea1180039e7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:55:25 2014 +0100
Add jQuery and our jQuery UI
commit fbe55d27da1c3aff8835b1a5d752c9c6fbb05fda
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:55:06 2014 +0100
Add the images used by jQuery
commit d23baa6b061285b2a0d060e8cdb72f200e7af792
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:54:51 2014 +0100
Add the election logo
commit 2bf87f1fb95042c34d4492cc036ea7c8b1f80b09
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:54:43 2014 +0100
If there is no elections, keep going this will be our admin index page
commit 4de57bfe2e5e0988012c85894382cb7c02471b2f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:29:24 2014 +0100
Inject some variables into every templates
commit ea37f37c03bdcdd98918e98b160e8baaccdbc122
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:29:02 2014 +0100
Add a top level __version__ and use this in the setup.py
commit 8f48bff2a5e156b0f6931436c680327103379ca4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:26:35 2014 +0100
Create a dedicated function to check is the user is an admin
commit 60d815402da6e3afb0453f98fe1b096b20fa7d0a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:20:39 2014 +0100
Fix link, we have auth_login not login here
commit a3ee3e9af19d09a12d210da78ff1a313895af4a4
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:16:53 2014 +0100
Add some missing dependencies
commit 6511bc3125ddc430194991546e384d90d0e55073
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:58:51 2014 +0100
Remove the login template, no longer used
commit 3b3a867e36267b7d23b0669ec8b838f30e94f944
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:58:15 2014 +0100
Little clean up in the master template
commit 2b8661c5c598fd82b6dfd2727672846316a32d44
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:58:05 2014 +0100
Remove the login form, no longer needed
commit 595400ca082ebb5817c4b8d6b9dd4e68d5c2bb36
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:57:55 2014 +0100
Adjust the requirements to list python-fedora and not flask-fas
commit 8cd0927db1a7c635e40464b11119a6c6bfb04625
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:57:18 2014 +0100
Port from flask-fas to flask-fas-openid
commit 7eff0fad00f887849bbb1ace4e93baee893b899b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Mar 9 20:53:59 2014 +0100
Style change
Let's be consistent throughout the application on how we write the
render_template
arguments.
commit 7afbaa483254f3630ba2a0e3548ad211357ec918
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Mar 1 07:49:39 2014 +0100
pep8 fixes
commit ec80874fa30e3eb1ccf4c0c0686e3d53fa6d4bb7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Feb 28 10:04:14 2014 +0100
Reduce indentation
commit bbf92c0704906c10c34a58fcb5541b16ce03b345
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Feb 20 11:21:51 2014 +0100
Adjust the runserver script
commit 506b9ba72a1af02a6827220f85dfdc5286891789
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:40:17 2014 +0100
Fix typo when retrieving a valid election
commit c0743d1b9fa61aed0b289b17b59ea15654d12550
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 17:12:53 2014 +0100
Fix retrieving a valid election that have ended
commit 554bdfc86ee059dc7324003eca81be8d2dbda84f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 16:59:05 2014 +0100
Bug fix in Vote.of_user_on_election() method to account for the count argument
commit 220530c96547b0b2e9b1c56c72a33253c4b2f5e6
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:51:54 2014 +0100
Adjust requirements
commit ae1a72a41a0a4e6d72022eff1cbd43a59c4007fc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:51:47 2014 +0100
Add decorator when login is required
commit 51056537b3856b5cf548a40d69fd9762c0f00734
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:13:25 2014 +0100
Add script to easily create the database required to work on elections
commit 207e076c93dd5fbbace55a74bc3a191f53e5cb88
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:12:59 2014 +0100
Adjust the tests to run on the current application
commit 1e89858e47c18df3cfbff3ac1ccf5b15c867ee6e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:12:32 2014 +0100
We no longer have a development configuration file to use on the tests
commit b7947e2a95afb668aeebb97f16c2f5f4104faf59
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:12:10 2014 +0100
Port the flask application away from flask-sqlalchemy
This allows us to have all the querying done in one place
and not tight coupling of the logic with this library.
commit 5c341fe8befe02aef39af14705c88c51e35b195d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:09:38 2014 +0100
Rework the models.py file to port it to plain SQLAlchemy
Expend the classes as well so that all the querying is done
only in this file an nowhere else in the project
commit 6febe17985964f8bb701bc618271469a9516eec5
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:08:42 2014 +0100
We cannot have 0 elections, this is taken care of in the controller
commit d9efe14cf52ecc6c4e1e93306ddf2f5274ec7a7c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:08:39 2014 +0100
We cannot have 0 elections, this is taken care of in the controller
commit ea25ce64260fb52502f738cfb4043a5f20305d7a
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:08:32 2014 +0100
We cannot have 0 elections, this is taken care of in the controller
commit 1e4a550e077d8eb53ef0f163f0322e6390b0545f
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 15:08:15 2014 +0100
Remove queries from the form
commit 0476d1e745c21aaa97e57faf08e0454f4351fc7e
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 13:22:49 2014 +0100
Remove un-necessary configuraiton file now that everything is moved to the
default_config
commit 01651e69b77d541f417f00cbc6ebcc8942cffa39
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 13:21:54 2014 +0100
Populate the default config with the values present in the sample development
configuration file
commit 9f64bdb0dea8864e01242669d2ecef70d79def3b
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 13:21:20 2014 +0100
Remove the sample createdb.in and the corresponding python script
commit cd8aa532e7f29b74d24b9834864bd849637a63ce
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 13:07:48 2014 +0100
Do not run on port 80 by default as this will conflict with any apache server running
commit ba2fac78417b0b8723a68e3cb9c8f519d5d0deab
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Wed Feb 19 13:01:49 2014 +0100
Fix the forms to use directly wtforms instead of flask-wtf
There has been a release of flask-wtf that stopped providing the interface to
wtforms.
This commit allows us to deal with these changes in flask-wtf
commit de346f20a8cb8843ca018d046fefdee45f7e8fc6
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:27:14 2013 +0000
Updates for new version
commit ef352d1d54b450f4c0ba995c9fed732a20710746
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:26:17 2013 +0000
Update directory path
commit fae9a3a58f1c25746fd9173ecceaffe13a6607a7
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:25:36 2013 +0000
Update directory path
commit a1521f7554383691b437d3e3ce6472372c8dd77c
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:24:36 2013 +0000
Update version
commit 189416af2fd33008bdf7ffe04ab55fb8246669c1
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:24:12 2013 +0000
Update task list
commit e8e99be24b1218f8cb37e67265add3fb7eb02b74
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Oct 20 15:23:57 2013 +0000
Add info to clone git repo
commit bb897417b80b7da01d03b41f2ce307e01de612dd
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Mon Sep 2 21:00:46 2013 +0000
More simple voting updates
commit 66215d90cf21693683e214d233bf6234f7ea33c6
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sun Aug 25 20:21:10 2013 +0000
Create simple vote election
commit a466eab8f9148a04b43d2bef100c07166190dea1
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Aug 24 03:38:28 2013 +0000
Restructure.
commit b7a1bd9b75436fa43cf9f0a79778c4801fa3dcea
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Aug 24 03:33:26 2013 +0000
Update instructions
commit 9a6911ea399d806b49253d2f3172f7cfacc9853a
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Thu Jul 25 03:20:53 2013 +0000
Add constraint to votes table
commit e7680eacb9dadb5ee7fa92e8bc1dfce4c9d879ae
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Thu Jul 25 03:20:23 2013 +0000
Fix processing 'My Elections'
commit 3629c4879b81045096ff3d9f9b322b9eaf232d0f
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jul 6 03:14:04 2013 +0000
Add task
commit 8ebe96391625cd52f56ea7626a4ff5798cb96924
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jul 6 03:13:25 2013 +0000
Fix db issues
commit 050d76f41d00f1cf9e229389d65be83793f72c0d
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jul 6 03:12:38 2013 +0000
Specify dummy FAS account
commit 586dbecada6b455db9dbc735c4ce7067623dd587
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jul 6 03:11:26 2013 +0000
Add elections owner to db
commit 3df48265145928d0abcfacdf8040c39542ab46c6
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jul 6 03:10:44 2013 +0000
Fix no elections issue
commit 6892cc5876dfe28af1a895e9340ca367b59b4531
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Sat Jun 15 03:56:56 2013 +0000
Changes to support building a good package
commit 4cf7c3d1603bc45393f587deafa83db2323bfd7e
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Thu May 9 03:52:52 2013 +0000
Change for RPM
commit 329206a96987111f6b0499348fb2eb3e3d55e12e
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Thu May 9 03:52:20 2013 +0000
Change for RPM
commit 65012deb9bce238fbcb2c6eb9aa24d76edc6aaf5
Author: Frank Chiulli <fchiulli(a)fedoraproject.org>
Date: Tue Apr 30 04:02:50 2013 +0000
httpd/wsgi now working
commit f56a328a757e21391e73f6e9fd1d869cfd06b846
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Wed Feb 27 23:29:37 2013 -0500
Correct version
commit 8aa5f96d95984632567a9f647ddbf17475c8bbab
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Wed Feb 27 22:35:59 2013 -0500
Update documentation
commit 3e9c2417f2b034b4a738247881fffd622967758a
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Wed Feb 27 22:35:32 2013 -0500
Fix AccountSystem call
commit ccf3ea666e5824789b04cfd8d236435cf32f49ab
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Sun Feb 17 23:01:56 2013 -0500
Test again
commit c2db136edf3a384fc45f33b8347e5535aeee5ebb
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Sun Feb 17 22:49:05 2013 -0500
Test git push
commit 164886f12c723c6e74f9352068892ed55c3fc074
Author: fchiulli <fchiulli(a)elections-dev-i-57734127.(none)>
Date: Sun Feb 17 19:05:01 2013 -0500
Lots of updates/changes
commit bbe83e8422a520587ddd902426b1d8a5c4be1b03
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 21:40:58 2012 -0400
Make fedmsg optional with a shim module.
commit be286a4df4ec863cc68d05be8fdf60817428b238
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 21:28:21 2012 -0400
Revert "Add fedmsg to the list of requirements."
This reverts commit 471fabeecb4121b7837b7de509cee76385cfe8f8.
commit d5e0024f1f3b4508d861372b220239546db83085
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 12:09:59 2012 -0400
Emit a fedmsg message when a new election is created.
commit 050ec3cdacf936b5cbfe98d0a81ff789db30df00
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 12:09:38 2012 -0400
Add fedmsg to the list of requirements.
commit 1941a7d90de44f90a89ee3a4d56a40049ed91d0a
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 12:09:20 2012 -0400
Add a fedmsg development config.
commit 4a4cb5f62aad2f6e389dd3be9d7edcbca3166809
Author: Ralph Bean <rbean(a)redhat.com>
Date: Fri Aug 31 12:08:52 2012 -0400
Move kitchen above python-fedora in the requirements.txt list.
commit f82ba41deac98f6454a31e6b87478ee07e2e07bb
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Tue Aug 28 08:35:35 2012 -0700
Rest of the changes to merge about into vote
commit 1a5b559e9d86a2b000ff0c0828b7216d6df22ebd
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Tue Aug 28 08:34:47 2012 -0700
Merge the about page into the vote page
commit dddeae455d73097d0709a497a12257f1089e1071
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 18:47:41 2012 -0700
Some more pages and functions that are blockers
commit 9030f25ac95ebb3fb4a5967d45751a892e184313
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 18:44:59 2012 -0700
Add an implementation of a page about an election
commit 1a9a48b01a5506e1269e4ebada4a0f2145eb7b25
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 18:42:28 2012 -0700
Add two new pages for dsmoketesting
commit 7c9c373bc25d159cd8c79ceba46eacc657cf904b
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 18:23:22 2012 -0700
A few more todo items: i18n, more paranoid error handling
commit 0778412e3e43f6d761626348ca5e491cc94613ed
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 17:43:22 2012 -0700
Smoketesting now covers all urls' GET method.
commit 831ca1ca44f7fa6769ce684abe52f29bff05ce22
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 15:28:54 2012 -0700
Add ability to specify site-specifc css
commit f147339fc8504ec7eb6c162b7c8a2f5927d999d9
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 15:18:49 2012 -0700
Fix traceback for hitting logout when the user is not logged in
commit 9a59a33252d3c546ce543f1475327d13d40b1136
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 15:18:14 2012 -0700
Add unittests -- currently just a few smoketests
commit 4e5d18c1df3b2e7aa423307879aad3f53f91725d
Author: Toshio Kuratomi <toshio(a)fedoraproject.org>
Date: Mon Aug 27 11:27:11 2012 -0700
Add a TODO file
commit ac55fdad53a38675dd7b9ca52ec35fe4d263418b
Author: Ralph Bean <rbean(a)redhat.com>
Date: Mon Aug 20 15:20:22 2012 -0400
Added preliminary requirements.txt.
commit bcae2a7153b8cdfcc4188ff33a77fc07fa24f716
Author: Ian Weller <ian(a)ianweller.org>
Date: Sun Jul 15 09:54:58 2012 -0500
List frontpaged elections on front page
commit 247fd649eacb58c9b132d3421a37b5b1e34c6603
Author: Ian Weller <ian(a)ianweller.org>
Date: Thu Jul 12 16:59:14 2012 -0500
Initial commit with mostly-working admin
commit 6e013f2a42075c561080cee07ec64d368e5e5e4c
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Jul 11 13:13:41 2014 +0200
Remove everything so that we can put the flask port on the top of this