vesta-web 1.1.5__py3-none-any.whl → 1.1.7__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.
- vesta/http/baseServer.py +9 -1
- {vesta_web-1.1.5.dist-info → vesta_web-1.1.7.dist-info}/METADATA +1 -1
- {vesta_web-1.1.5.dist-info → vesta_web-1.1.7.dist-info}/RECORD +6 -6
- {vesta_web-1.1.5.dist-info → vesta_web-1.1.7.dist-info}/WHEEL +0 -0
- {vesta_web-1.1.5.dist-info → vesta_web-1.1.7.dist-info}/entry_points.txt +0 -0
- {vesta_web-1.1.5.dist-info → vesta_web-1.1.7.dist-info}/licenses/LICENSE.md +0 -0
vesta/http/baseServer.py
CHANGED
|
@@ -83,6 +83,8 @@ class BaseServer:
|
|
|
83
83
|
res = func(self, *args, **kwargs)
|
|
84
84
|
self.response.ok()
|
|
85
85
|
if res:
|
|
86
|
+
if isinstance(res, bytes):
|
|
87
|
+
return res
|
|
86
88
|
return res.encode()
|
|
87
89
|
else:
|
|
88
90
|
return b""
|
|
@@ -138,7 +140,13 @@ class BaseServer:
|
|
|
138
140
|
if ext :
|
|
139
141
|
name = name + "." + ext
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
# Create subdirectories if they don't exist
|
|
144
|
+
full_path = prefix + name
|
|
145
|
+
directory = os.path.dirname(full_path)
|
|
146
|
+
if not os.path.exists(directory):
|
|
147
|
+
os.makedirs(directory, exist_ok=True)
|
|
148
|
+
|
|
149
|
+
with open(full_path, 'wb') as f:
|
|
142
150
|
f.write(content)
|
|
143
151
|
return name
|
|
144
152
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vesta-web
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.7
|
|
4
4
|
Summary: An extensive web framework adding every feature needed for Carbonlab
|
|
5
5
|
Project-URL: Homepage, https://gitlab.com/Louciole/vesta
|
|
6
6
|
Project-URL: Issues, https://gitlab.com/Louciole/vesta/-/issues
|
|
@@ -45,7 +45,7 @@ vesta/emptyProject/static/translations/fr.mjs,sha256=ouMluPVTgB4Q5vmb7zGE6YGTH4U
|
|
|
45
45
|
vesta/emptyProject/static/translations/translation.mjs,sha256=JxJ2peSlYVQK-bUKpfddPLXm0XZiz2yu6A6iWIqpKyM,1422
|
|
46
46
|
vesta/emptyProject/static/ws/onMessage.mjs,sha256=ow5nwSEdiBcvm-Y2zOUMhnqLp-5xWgo11kHviaTRlTw,658
|
|
47
47
|
vesta/emptyProject/tests/example/foo.py,sha256=NS9oIXFBOvIyWK1LHwkJm9amJuSMN4cxJwouBrJlh2I,115
|
|
48
|
-
vesta/http/baseServer.py,sha256=
|
|
48
|
+
vesta/http/baseServer.py,sha256=ltfXhkqJQPcvKlUX1u5jUguPnodDslmM4t1BOO0ZVR8,15083
|
|
49
49
|
vesta/http/error.py,sha256=fWdp-oI2ObJD2mHHuxs1yVJvhON5oHYgYFRLAcUMs-I,180
|
|
50
50
|
vesta/http/redirect.py,sha256=OiDeOmU-X5Mos8a0BQIeOIJqvgWjDEtaYrM4-x4MXl0,177
|
|
51
51
|
vesta/http/response.py,sha256=G7cmbrXFNbIbQoqNxNkR06I5VymIwjFSAe3LtVa56Ok,3760
|
|
@@ -55,8 +55,8 @@ vesta/scripts/initDB.py,sha256=TKaK4RZM6CycBEsHeGb9Q9PdphkQgaJDnEWhvRnGC9k,1659
|
|
|
55
55
|
vesta/scripts/install.py,sha256=GvH_HHx5aU5_54RQ1_2vz4DaLCh42AHfUKy-m0q21vY,2125
|
|
56
56
|
vesta/scripts/testsRun.py,sha256=bXJImdexKQUDW8CR8F9VIKTrgkd7QfnvHQPENEV4x38,2463
|
|
57
57
|
vesta/scripts/utils.py,sha256=PR2XPonaoZEbegzV3QX1EHfyq67sU-cbDEUexCuJp9Q,6013
|
|
58
|
-
vesta_web-1.1.
|
|
59
|
-
vesta_web-1.1.
|
|
60
|
-
vesta_web-1.1.
|
|
61
|
-
vesta_web-1.1.
|
|
62
|
-
vesta_web-1.1.
|
|
58
|
+
vesta_web-1.1.7.dist-info/METADATA,sha256=uOlReyAhihmQXX2zAmRKvn4KNJxUMOqIiJr8Ml9WQ0c,1584
|
|
59
|
+
vesta_web-1.1.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
60
|
+
vesta_web-1.1.7.dist-info/entry_points.txt,sha256=MHMrWJwtkb4FmNz0CTpxZzwQ3LTqndXBh8YBPDfXlW4,49
|
|
61
|
+
vesta_web-1.1.7.dist-info/licenses/LICENSE.md,sha256=zoPFEFUUoSgosmDBK5fGTWGRHHBaSVuuJT2ZQIYXuIk,177
|
|
62
|
+
vesta_web-1.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|