flask-storage 2.0.4.dev1__py3-none-any.whl → 2.0.4.dev2__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.
@@ -42,7 +42,10 @@ class LocalBackend(BaseBackend):
42
42
 
43
43
  @cached_property
44
44
  def root(self):
45
- return self.config.get("root") or os.path.join(self.default_root, self.name)
45
+ root = self.config.get("root") or os.path.join(self.default_root, self.name)
46
+ # Pin relative roots to the process CWD: send_from_directory would
47
+ # otherwise anchor them to the app dir, breaking serve().
48
+ return os.path.abspath(root)
46
49
 
47
50
  @cached_property
48
51
  def default_root(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flask-storage
3
- Version: 2.0.4.dev1
3
+ Version: 2.0.4.dev2
4
4
  Summary: Simple and easy file storages for Flask
5
5
  Author-email: Etalab <etalab@data.gouv.fr>
6
6
  Project-URL: Home, https://github.com/etalab/flask-storage
@@ -7,12 +7,12 @@ flask_storage/signals.py,sha256=_FXSq5KEwlHyE4aMBwOMd6XhleYDUiLd9Ut6U5Tp6cg,180
7
7
  flask_storage/storage.py,sha256=kLOi-oIbJtmImtPrShxPyf-nPZWQUGTXCGJ7y8Y8lWA,15978
8
8
  flask_storage/views.py,sha256=YngzSXuxwiT-GQFLNWrXk0SrPcyKmbrDCOubMt3Wo9g,325
9
9
  flask_storage/backends/__init__.py,sha256=thajBIF5Ok5zAiLEZmYBHwTxjmtD6_-Y1kXnNYQH5ws,4051
10
- flask_storage/backends/local.py,sha256=Z0hgBtSr5yRbllGLRlqXpTHSNJgTJLTlxl0harEmAXY,4245
10
+ flask_storage/backends/local.py,sha256=ooPnw2lZyX_sLgluK4sC1rQHaSBif7TPVwP0R66oNiM,4423
11
11
  flask_storage/backends/mock.py,sha256=0-b6SfzIuVO5Uu8BlSz1uNNALyBGNHePz5o79Ef1aOw,185
12
12
  flask_storage/backends/s3.py,sha256=CV8rwaFSUJOk5pTz4pOv_z679FZD1nuJ9NC9cJswK44,10045
13
- flask_storage-2.0.4.dev1.dist-info/licenses/LICENSE,sha256=Jsa1CKm-fF0guY0ht3reKgv2D3ReoCjNVX0IPtreqSE,1081
14
- flask_storage-2.0.4.dev1.dist-info/METADATA,sha256=fuaHz7GojZJuTzTei0DGE38BKNwQbD6gFtffQ20m6lc,1312
15
- flask_storage-2.0.4.dev1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
16
- flask_storage-2.0.4.dev1.dist-info/entry_points.txt,sha256=hX7fv5H16y_4DLa-TJKZrdSqcddfRo1AEFSN3oH0cHs,156
17
- flask_storage-2.0.4.dev1.dist-info/top_level.txt,sha256=dewU5rlVVfXSOtwXxhCTSujH1TX9-8SXFK9L67Lux3U,14
18
- flask_storage-2.0.4.dev1.dist-info/RECORD,,
13
+ flask_storage-2.0.4.dev2.dist-info/licenses/LICENSE,sha256=Jsa1CKm-fF0guY0ht3reKgv2D3ReoCjNVX0IPtreqSE,1081
14
+ flask_storage-2.0.4.dev2.dist-info/METADATA,sha256=fN5UqwEBKwxZpliRl76DqPtzAdfhwhmBtLiY1XJGGno,1312
15
+ flask_storage-2.0.4.dev2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
16
+ flask_storage-2.0.4.dev2.dist-info/entry_points.txt,sha256=hX7fv5H16y_4DLa-TJKZrdSqcddfRo1AEFSN3oH0cHs,156
17
+ flask_storage-2.0.4.dev2.dist-info/top_level.txt,sha256=dewU5rlVVfXSOtwXxhCTSujH1TX9-8SXFK9L67Lux3U,14
18
+ flask_storage-2.0.4.dev2.dist-info/RECORD,,