geonature.app
Démarrage de l’application
Module Contents
Classes
Provide JSON operations using Python's built-in |
Functions
|
This function add to the 'version_locations' parameter of the alembic config the |
|
- geonature.app.configure_alembic(alembic_config)[source]
This function add to the “version_locations” parameter of the alembic config the “migrations” entry point value of the “gn_module” group for all modules having such entry point. Thus, alembic will find migrations of all installed geonature modules.
- class geonature.app.MyJSONProvider(app: flask.sansio.app.App)[source]
Bases:
flask.json.provider.DefaultJSONProvider
Provide JSON operations using Python’s built-in
json
library. Serializes the following additional data types:datetime.datetime
anddatetime.date
are serialized to RFC 822 strings. This is the same as the HTTP date format.uuid.UUID
is serialized to a string.dataclasses.dataclass
is passed todataclasses.asdict()
.Markup
(or any object with a__html__
method) will call the__html__
method to get a string.