modify to range voting
[cavote.git] / settings.py.example
index 7eaa906..bdbc83d 100644 (file)
@@ -5,10 +5,32 @@ DATABASE = '/tmp/cavote.db'
 PASSWD_SALT = 'change this value to some random chars!'
 SECRET_KEY = '{J@uRKO,xO-PK7B,jF?>iHbxLasF9s#zjOoy=+:'
 DEBUG = True
-TITLE = u"Cavote FFDN"
-EMAIL = '"' + TITLE + '"' + ' <' + u"cavote@ffdn.org" + '>'
-VERSION = "cavote 0.3.0"
+TITLE = u"Cavote"
+EMAIL = '"' + TITLE + '"' + ' <' + u"contact+cavote@localhost.localdomain" + '>'
+VERSION = "cavote 0.4.0"
 SMTP_SERVER = "127.0.0.1"
-PATTERNS = {u'Oui/Non': [u'Oui', u'Non'], u'Oui/Non/Blanc': [u'Oui', u'Non', u'Blanc'], u'Oui/Non/Peut-être': [u'Oui', u'Non', u'Peut-être']}
+PATTERNS = \
+ { u'Oui/Non': [u'Oui', u'Non'] \
+ }
+CARDINALS = \
+ [ (u'Sans moi/Avec moi'
+    , 0, [u'±0 (Sans moi)', u'+1 (Avec moi)']) \
+ , (u'Hostile/Indifférent/Favorable'
+    , -1, [u'-1 (Hostile)', u'±0 (Indifférent)', u'+1 (Favorable)']) \
+ , (u'Très Hostile/Hostile/Indifférent/Favorable/Très Favorable'
+    , -2, [u'-2 (Très Hostile)', u'-1 (Hostile)', u'±0 (Indifférent)', u'+1 (Favorable)', u'+2 (Très Favorable)']) \
+ ]
+QUORUMS = \
+ [ 0
+ , 0.1
+ , 0.25
+ , 0.333
+ , 0.5
+ , 0.666
+ , 0.75
+ , 0.9
+ , 1
+ ]
 BABEL_DEFAULT_LOCALE = 'fr'
 BABEL_DEFAULT_TIMEZONE = 'Europe/Paris'
+VOTE_URL = "http://localhost:5000/vote/%d"