Skip to content
Snippets Groups Projects
Select Git revision
  • 163e56441ec1924d26e9ec26e3c3435184ad15cc
  • test default protected
  • master protected
  • niki_edit_branch
  • feat/custom-css
  • feat/redesign-improvements-10
  • feat/redesign-improvements-8
  • feat/redesign-fixes-3
  • feat/pirstan-changes
  • feat/separate-import-thread
  • feat/dary-improvements
  • features/add-pdf-page
  • features/add-typed-table
  • features/fix-broken-calendar-categories
  • features/add-embed-to-articles
  • features/create-mastodon-feed-block
  • features/add-custom-numbering-for-candidates
  • features/add-timeline
  • features/create-wordcloud-from-article-page
  • features/create-collapsible-extra-legal-info
  • features/extend-hero-banner
21 results

0027_donatehomepage_custom_blocks.py

user avatar
millosolomillo authored and GitHub committed
* View voter list as it is in voter file upload

* Display the login type again.

* Returning to the source fixed-size fonts

* Add a proper label you can easily make selections.

* Make cast vote email a template

* Catch non json results when verifying election

If you try to verify a election and you aren't allowed, you get the following
error. This is because it is expected a JSON result and you get, for instance,
a html page to login.

VM65:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.HELIOS.Election.fromJSONString (helios.js:127)
    at Object.success (verify.html?election_url=/helios/elections/258ca6b1-afa4-49a3-b484-c31679d2ebbe:100)
    at success (jquery-1.2.2.min.js:28)
    at onreadystatechange (jquery-1.2.2.min.js:27)

* Alter request.REQUEST to request.GET

Step toward future django version upgrade
Currently, the following warning is received:
RemovedInDjango19Warning: `request.REQUEST` is deprecated, use `request.GET` or `request.POST` instead.

* Fix to consider request.POST or request.GET

* upgrade gunicorn

* upgrade python

* upgrading to heroku-16

* Remove spurious comment

* correct # of votes

* Tweak style for textarea size

* Show trustee key in a textarea instead of open tab

Google Chrome raises the following error when trying to show
trustee key content as top frame data URL:
"Not allowed to navigate top frame to data URL"
See:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GbVcuwg_QjM%5B1-25%5D
Tested in Firerox 64.0.2, Chrome Version 71.0.3578.98 and Safari Version 12.0.3

* updated software versions

* added workaround for gce for travis as per https://github.com/travis-ci/travis-ci/issues/7940

* Remove unused import causing deprecation warning

Warning in the form:
RemovedInDjango19Warning: "ModelXYZ" doesn't declare an explicit app_label
Apparently this happens because it tries to import models before app
configuration runs

* upgrade google APIs

* Ignore .idea folder

* Do not try to run more commands if any fails

* import and serve only enabled auth systems urls

* Prevent trustee enumeration by returning the same 404 error both if trustee is not found or secret does not match

Also, return a different 404 if election isn't found (instead of redirecting to home)

* Add missing import

* Dispatch worker method explicitly

* Reduce cluttering and overlapping on imports

* Order loaded voter files by date

* Update random.js

Setting randomWords paranoia level to 6, which is the default level suggested on https://github.com/bitwiseshiftleft/sjcl/wiki/Symmetric-Crypto#generating-random-bytes
Also removing unreachable line at end of function.
b52a755d
History