fietsboek package¶
Fietsboek is a web application to track and share GPX tours.
This is the documentation for the Python package, useful for developers that wish to work on fietsboek.
For more information, you can check out the following resources:
The Fietsboek repository.
The documentation index: Welcome to Fietsboek’s documentation!
- fietsboek.check_update_state(config_uri)¶
Checks the update state of the data, and logs a warning if there is a mismatch.
- Parameters:
config_uri (
str
) – Path to the configuration file.
- fietsboek.locale_negotiator(request)¶
Negotiates the right locale to use.
This tries the following:
It runs the default negotiator. This allows the locale to be overriden by using the
_LOCALE_
query parameter.It checks for the presence of a
fietsboek_locale
cookie.It uses the Accept-Language header.
- fietsboek.main(global_config, **settings)¶
This function returns a Pyramid WSGI application.
- fietsboek.maintenance_mode(handler, _registry)¶
A Pyramid Tween that handles the maintenance mode.
Note that we do this as a tween to ensure we check for the maintenance mode as early as possible. This avoids hitting the DB, which might be in an inconsistent state.
Subpackages¶
Submodules¶
- fietsboek.actions module
- fietsboek.config module
- fietsboek.convert module
- fietsboek.data module
- fietsboek.email module
- fietsboek.hittekaart module
- fietsboek.jinja2 module
- fietsboek.pages module
- fietsboek.pshell module
- fietsboek.routes module
- fietsboek.security module
- fietsboek.summaries module
- fietsboek.util module