swissvotes.app
Classes
The swissvotes application. Include this in your onegov.yml to serve |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- class swissvotes.app.SwissvotesApp[source]
Bases:
onegov.core.Framework,onegov.form.FormApp,onegov.quill.QuillApp,onegov.file.DepotApp,onegov.user.UserAppThe swissvotes application. Include this in your onegov.yml to serve it with onegov-server.
- get_cached_dataset(format: Literal['csv']) str[source]
- get_cached_dataset(format: Literal['xlsx']) bytes
Gets or creates the dataset in the requested format.
We store the dataset using the last modified timestamp - this way, we have a version of past datasets. Note that we don’t delete any old datasets.
- swissvotes.app.swissvotes_content_security_policy() more.content_security.ContentSecurityPolicy[source]