geovisio 2.9.0__py3-none-any.whl → 2.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geovisio/__init__.py +6 -1
- geovisio/config_app.py +5 -5
- geovisio/translations/ar/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/ar/LC_MESSAGES/messages.po +818 -0
- geovisio/translations/br/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/da/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/da/LC_MESSAGES/messages.po +4 -3
- geovisio/translations/de/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/de/LC_MESSAGES/messages.po +55 -2
- geovisio/translations/el/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/en/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/en/LC_MESSAGES/messages.po +193 -139
- geovisio/translations/eo/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/eo/LC_MESSAGES/messages.po +53 -4
- geovisio/translations/es/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/fi/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/fr/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/fr/LC_MESSAGES/messages.po +91 -3
- geovisio/translations/hu/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/it/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/it/LC_MESSAGES/messages.po +63 -3
- geovisio/translations/ja/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/ko/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/messages.pot +185 -129
- geovisio/translations/nl/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/nl/LC_MESSAGES/messages.po +292 -63
- geovisio/translations/oc/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/oc/LC_MESSAGES/messages.po +818 -0
- geovisio/translations/pl/LC_MESSAGES/messages.po +1 -1
- geovisio/translations/sv/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/sv/LC_MESSAGES/messages.po +4 -3
- geovisio/translations/ti/LC_MESSAGES/messages.mo +0 -0
- geovisio/translations/ti/LC_MESSAGES/messages.po +762 -0
- geovisio/translations/zh_Hant/LC_MESSAGES/messages.po +1 -1
- geovisio/utils/annotations.py +14 -17
- geovisio/utils/auth.py +14 -13
- geovisio/utils/cql2.py +2 -2
- geovisio/utils/fields.py +14 -2
- geovisio/utils/items.py +44 -0
- geovisio/utils/model_query.py +2 -2
- geovisio/utils/pic_shape.py +1 -1
- geovisio/utils/pictures.py +111 -18
- geovisio/utils/semantics.py +32 -3
- geovisio/utils/sentry.py +1 -1
- geovisio/utils/sequences.py +51 -34
- geovisio/utils/upload_set.py +285 -198
- geovisio/utils/website.py +1 -1
- geovisio/web/annotations.py +209 -68
- geovisio/web/auth.py +1 -1
- geovisio/web/collections.py +26 -22
- geovisio/web/configuration.py +24 -4
- geovisio/web/docs.py +93 -11
- geovisio/web/items.py +197 -121
- geovisio/web/params.py +44 -31
- geovisio/web/pictures.py +34 -0
- geovisio/web/tokens.py +49 -1
- geovisio/web/upload_set.py +150 -32
- geovisio/web/users.py +4 -4
- geovisio/web/utils.py +2 -2
- geovisio/workers/runner_pictures.py +128 -23
- {geovisio-2.9.0.dist-info → geovisio-2.10.0.dist-info}/METADATA +13 -13
- geovisio-2.10.0.dist-info/RECORD +105 -0
- geovisio-2.9.0.dist-info/RECORD +0 -98
- {geovisio-2.9.0.dist-info → geovisio-2.10.0.dist-info}/WHEEL +0 -0
- {geovisio-2.9.0.dist-info → geovisio-2.10.0.dist-info}/licenses/LICENSE +0 -0
geovisio/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""GeoVisio API - Main"""
|
|
2
2
|
|
|
3
|
-
__version__ = "2.
|
|
3
|
+
__version__ = "2.10.0"
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
from flask import Flask, jsonify, stream_template, send_from_directory, redirect, request, url_for
|
|
@@ -54,6 +54,11 @@ LOGGING_CONFIG = {
|
|
|
54
54
|
},
|
|
55
55
|
"loggers": {
|
|
56
56
|
"PIL": {"handlers": ["stdout", "stderr"], "level": "WARN", "propagate": False}, # lower PIL loggers to only have warnings
|
|
57
|
+
"watchdog": {
|
|
58
|
+
"handlers": ["stdout", "stderr"],
|
|
59
|
+
"level": "WARN",
|
|
60
|
+
"propagate": False,
|
|
61
|
+
}, # lower watchdog loggers too (used by flask hot reload)
|
|
57
62
|
},
|
|
58
63
|
"root": {"level": "INFO", "handlers": ["stderr", "stdout"]},
|
|
59
64
|
}
|
geovisio/config_app.py
CHANGED
|
@@ -17,10 +17,10 @@ from geovisio.utils.website import Website
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class ApiSummary(BaseModel):
|
|
20
|
-
name: Dict[str, str] = {"en": "
|
|
20
|
+
name: Dict[str, str] = {"en": "Panoramax"}
|
|
21
21
|
description: Dict[str, str] = {"en": "The open source photo mapping solution"}
|
|
22
|
-
logo: HttpUrl = "https://gitlab.com/panoramax/gitlab-profile/-/raw/main/images/
|
|
23
|
-
color: Color = "#
|
|
22
|
+
logo: HttpUrl = "https://gitlab.com/panoramax/gitlab-profile/-/raw/main/images/panoramax.svg"
|
|
23
|
+
color: Color = "#5e499c"
|
|
24
24
|
email: EmailStr = "panoramax@panoramax.fr"
|
|
25
25
|
geo_coverage: Dict[str, str] = {"en": "Worldwide\nThe picture can be sent from anywhere in the world."}
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ class DefaultConfig:
|
|
|
29
29
|
API_SUMMARY = ApiSummary()
|
|
30
30
|
API_VIEWER_PAGE = "viewer.html"
|
|
31
31
|
API_MAIN_PAGE = "main.html"
|
|
32
|
-
# we default we keep the session cookie 7 days, users would have to renew their
|
|
32
|
+
# we default we keep the session cookie 7 days, users would have to renew their login after this
|
|
33
33
|
PERMANENT_SESSION_LIFETIME = datetime.timedelta(days=7).total_seconds()
|
|
34
34
|
API_FORCE_AUTH_ON_UPLOAD = False
|
|
35
35
|
PICTURE_PROCESS_DERIVATES_STRATEGY = "ON_DEMAND"
|
|
@@ -145,7 +145,7 @@ def read_config(app, test_config):
|
|
|
145
145
|
app.config.update(test_config)
|
|
146
146
|
|
|
147
147
|
if "API_LOG_LEVEL" in app.config:
|
|
148
|
-
logging.getLogger(
|
|
148
|
+
logging.getLogger().setLevel(app.config["API_LOG_LEVEL"].upper())
|
|
149
149
|
|
|
150
150
|
# Create DB_URL from separated parameters
|
|
151
151
|
if "DB_PORT" in app.config or "DB_HOST" in app.config or "DB_USERNAME" in app.config or "DB_PASSWORD" in app.config:
|
|
Binary file
|