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.UserApp- The swissvotes application. Include this in your onegov.yml to serve it with onegov-server. - serve_static_files = True[source]
- Returns True if - /staticfiles should be served. Needs to be enabled manually.- Note that even if the static files are not served, - /staticpath is still served, it just won’t return anything but a 404.- Note also that static files are served publicly. You can override this in your application, but doing that and testing for it is on you! - See also: - onegov.core.static.
 - 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.