OpenGeodeWeb-Back 4.1.1__py3-none-any.whl → 4.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 4.1.1
3
+ Version: 4.2.0
4
4
  Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
@@ -37,6 +37,7 @@ Requires-Dist: opengeode-inspector ==5.1.3
37
37
  Requires-Dist: opengeode-io ==6.5.1
38
38
  Requires-Dist: referencing ==0.35.0
39
39
  Requires-Dist: rpds-py ==0.18.0
40
+ Requires-Dist: typing-extensions ==4.12.0
40
41
  Requires-Dist: werkzeug ==3.0.2
41
42
 
42
43
  <h1 align="center">OpenGeodeWeb-Back<sup><i>by Geode-solutions</i></sup></h1>
@@ -1,7 +1,7 @@
1
1
  opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- opengeodeweb_back/geode_functions.py,sha256=RkX8uTU1VnwoCFWtUdEzgrixyA81BvOo8lz_hJw8MUY,11349
2
+ opengeodeweb_back/geode_functions.py,sha256=aYYfnwiOc-NfixucoYIZUwNmrHe3xcGy4Ea_czLkG0Q,11637
3
3
  opengeodeweb_back/geode_objects.py,sha256=QHWz2SgaHBd1kO4fZLOV9y2UBrml4L93WP2VmMv_XWA,20286
4
- opengeodeweb_back/routes/blueprint_routes.py,sha256=OS-JnDHuIC1q9uY7wUV8y7sn_iHmPUaoNIJzV_qDTtQ,6071
4
+ opengeodeweb_back/routes/blueprint_routes.py,sha256=P32kopdz8aKelnNtiu_6rCuF3o5wrb1GmhoSy3VnaMQ,6082
5
5
  opengeodeweb_back/routes/schemas/allowed_files.json,sha256=pRsGf39LiJpl3zEGLg4IqvRtm7iUx3Wq4Tb4tSFXGV0,234
6
6
  opengeodeweb_back/routes/schemas/allowed_objects.json,sha256=8JLtAI46eXeiJuiryS2geRVv0J1rGkFb87pRwtBZSZw,296
7
7
  opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json,sha256=0t4YhdKxDlzcLh85JU85z6Pn5h8wlXVt3Zi4ZhXXmTQ,308
@@ -9,8 +9,8 @@ opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json,sha256=86QEB
9
9
  opengeodeweb_back/routes/schemas/inspect_file.json,sha256=7jmmLD2oZ2dxn5-2HqS6fU92eGM3FWBQdj3CjyYmGOA,285
10
10
  opengeodeweb_back/routes/schemas/missing_files.json,sha256=tJVdSM3CqYFZRC6eNW6Q3JG3RtoaZDxaZtbfx6djbX0,286
11
11
  opengeodeweb_back/routes/schemas/upload_file.json,sha256=sE6bxz3mJbSZlGmrnR_hZmcx0dvZGn3Wpnn6szRPxXQ,186
12
- OpenGeodeWeb_Back-4.1.1.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
13
- OpenGeodeWeb_Back-4.1.1.dist-info/METADATA,sha256=huxm1QsA0bBImRhM3alK9-BYuvHaDBqcM9u7TGrpszU,3039
14
- OpenGeodeWeb_Back-4.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
15
- OpenGeodeWeb_Back-4.1.1.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
16
- OpenGeodeWeb_Back-4.1.1.dist-info/RECORD,,
12
+ OpenGeodeWeb_Back-4.2.0.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
13
+ OpenGeodeWeb_Back-4.2.0.dist-info/METADATA,sha256=KV08KG_hmfcBybxiX3qPUk2P9VpNvgpbhOVC_jIGfjI,3081
14
+ OpenGeodeWeb_Back-4.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
15
+ OpenGeodeWeb_Back-4.2.0.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
16
+ OpenGeodeWeb_Back-4.2.0.dist-info/RECORD,,
@@ -354,3 +354,16 @@ def send_file(upload_folder, saved_files, new_file_name):
354
354
  response.headers["Access-Control-Expose-Headers"] = "new-file-name"
355
355
 
356
356
  return response
357
+
358
+
359
+ def handle_exception(e):
360
+ response = e.get_response()
361
+ response.data = flask.json.dumps(
362
+ {
363
+ "code": e.code,
364
+ "name": e.name,
365
+ "description": e.description,
366
+ }
367
+ )
368
+ response.content_type = "application/json"
369
+ return response
@@ -31,7 +31,7 @@ def allowed_files():
31
31
  extensions = geode_functions.list_input_extensions(
32
32
  flask.request.json["supported_feature"]
33
33
  )
34
- return {"status": 200, "extensions": extensions}
34
+ return flask.make_response({"extensions": extensions}, 200)
35
35
 
36
36
 
37
37
  with open(