Commit Graph

16 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7e9f4154bb Use python-vote-core to implement a « vote » field
Most of the code is copied from the old vote/ranked_items.py
implementation apart from the stats() method which is rewritten to use
the library python-vote-core
(http://pypi.python.org/pypi/python-vote-core/).

Implemented voting methods are:
 - Condorcet / Schulze
 - Condorcet / Ranked-Pairs
 - Instant Run-Off
 - Schulze Proportional Ranking
 - Schulze Single Transfer Vote
 - Schulze NPR

Some of them take parameters (number of winners, winner threshold). I'm
not sure of their interpretation so the best is to lookup the Wikipedia
article to know more.

Intermediate statisctics are reported, like when there is
multiple-rounds tally to find a winner.

« pip install python-vote-core » is necessary to use this extension.
2011-05-12 22:24:11 +00:00
Frédéric Péters f0f36a1b79 license/copyright header 2010-08-13 13:58:23 +00:00
Benjamin Dauvergne 387eb114f7 Revert "Revert unwanted part from last commit"
Stop messing with others code...

This reverts commit 0b592ba5039c23d6b053b11ff0446211c16fd92b.

Revert "Make __init__.py file not empty to work-around bug in dh_pysupport"

This reverts commit 68ec91ad285e9d03ba7eb8c67f77195f98ab8404.

Revert "Fix bad imports"

This reverts commit 911b280096714915b2ae02ec5d3f2eaa3697ea3c.

Revert "Activate ihooks work around with python 2.5"

This reverts commit d581c751746019d4fabc26bb58bd00bca1dee215.

Revert "Adapt last changes to python 2.5"

This reverts commit df650f0b9c0fc54deb659ccd34211af282e4b920.

Revert "Accept unknown keys in configuration trees"

This reverts commit 024dcfc2b7a7644617fc22bbc9c672d051d9ac3f.

Revert "Add _q_exports member for new URL of debug settings"

This reverts commit c5805b5f0e2b9d235a69db8f16675959b0d8c358.

Revert "Restore old path of qommon, make all import of qommon through path wcs.qommon"

This reverts commit 03f928daae294d4710cf031187bd702e10c3292b.

Revert "Completely generate the SettingDirectory from a schema"

This reverts commit 6b5f49ca402fe70d816e498e46ec21472b75b454.

Revert "Change all imports in common to relatives import"

This reverts commit 1f19cdfcd305eb59c4345afc03e73c7b74a273de.

Revert "revert erroneously commited debugging statement"

This reverts commit 2a3251ee9fcdd196a838b7a3583b9e4b7889f3f5.

Revert "Move qommon at the root of the project through a symbolic link"

This reverts commit 4868a92022ae3ad3b07ade271d76e1206dc7c05d.

Revert "Demonstrate use of SettingPage to reimplement debug_options setting page"

This reverts commit 1856132636266065d750f734fcf3650606395b8b.

Revert "SchemaGui: add a SettingPage class, fix bad hint value"

This reverts commit 36f09d9ccc517ca841e9172dcd6100db01f2d9dc.

Revert "Stat implementing schemagui"

This reverts commit 951dae9e7be82177e78ed9bb1eedecce177527a7.
2010-03-24 12:49:08 +00:00
Benjamin Dauvergne e579145f0d Restore old path of qommon, make all import of qommon through path wcs.qommon 2010-03-23 16:00:59 +00:00
Frédéric Péters 7783d2ed16 Fixed display of voter when using "user choice" anonymity level 2010-01-13 22:23:36 +00:00
Frédéric Péters 8ff45ff9f8 do not force the "anonymous vote" checkbox to be checked 2010-01-13 22:18:29 +00:00
Frédéric Péters 63f5fc9f51 check ranked values are all integers 2009-05-10 15:55:23 +00:00
Frédéric Péters 29f858a97c display errors for ranked items field 2009-05-10 15:51:12 +00:00
Frédéric Péters d9d2a9f8fd consider the settings when evaluating anonymity settings, not the value (which
is broken btw)
2009-01-21 11:41:18 +00:00
Damien Laniel f4d26e55e2 removed trailing whitespaces 2009-01-15 09:50:37 +00:00
Frédéric Péters d8c94b95c1 updated ranked items get_view_value() to return htmltext 2008-06-13 09:31:12 +00:00
Frédéric Péters 8c597261cc IntWidget instead of StringWidget for ranking items 2006-12-17 16:31:14 +00:00
Frédéric Péters 5be4a0fcfe fixed condorcet matrix for both cases when there are None values and when
all values are filled.
2006-12-17 11:40:58 +00:00
Frédéric Péters c461a7c5bf removed debugging print 2006-12-17 10:12:45 +00:00
Frédéric Péters 434d7a24fc fixed double parsing of VoteAnonymity field 2006-12-17 10:10:40 +00:00
Frédéric Péters 1fc78ef204 moved vote related widgets/fields to extra/vote/ 2006-12-16 09:50:53 +00:00