settings.py.example 988 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. DATABASE = '/tmp/cavote.db'
  4. PASSWD_SALT = 'change this value to some random chars!'
  5. SECRET_KEY = '{J@uRKO,xO-PK7B,jF?>iHbxLasF9s#zjOoy=+:'
  6. DEBUG = True
  7. TITLE = u"Cavote"
  8. EMAIL = '"' + TITLE + '"' + ' <' + u"contact+cavote@localhost.localdomain" + '>'
  9. VERSION = "cavote 0.4.0"
  10. SMTP_SERVER = "127.0.0.1"
  11. PATTERNS = \
  12. { u'Oui/Non': [u'Oui', u'Non'] \
  13. }
  14. CARDINALS = \
  15. [ (u'Sans moi/Avec moi'
  16. , 0, [u'±0 (Sans moi)', u'+1 (Avec moi)']) \
  17. , (u'Hostile/Indifférent/Favorable'
  18. , -1, [u'-1 (Hostile)', u'±0 (Indifférent)', u'+1 (Favorable)']) \
  19. , (u'Très Hostile/Hostile/Indifférent/Favorable/Très Favorable'
  20. , -2, [u'-2 (Très Hostile)', u'-1 (Hostile)', u'±0 (Indifférent)', u'+1 (Favorable)', u'+2 (Très Favorable)']) \
  21. ]
  22. QUORUMS = \
  23. [ 0
  24. , 0.1
  25. , 0.25
  26. , 0.333
  27. , 0.5
  28. , 0.666
  29. , 0.75
  30. , 0.9
  31. , 1
  32. ]
  33. BABEL_DEFAULT_LOCALE = 'fr'
  34. BABEL_DEFAULT_TIMEZONE = 'Europe/Paris'
  35. VOTE_URL = "http://localhost:5000/vote/%d"