Nexom 1.0.9__py3-none-any.whl → 1.0.10__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.
- nexom/app/cookie.py +8 -4
- nexom/assets/app/templates/default.html +1 -1
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/METADATA +1 -1
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/RECORD +8 -8
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/WHEEL +0 -0
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/entry_points.txt +0 -0
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/licenses/LICENSE +0 -0
- {nexom-1.0.9.dist-info → nexom-1.0.10.dist-info}/top_level.txt +0 -0
nexom/app/cookie.py
CHANGED
|
@@ -16,19 +16,23 @@ class Cookie:
|
|
|
16
16
|
*,
|
|
17
17
|
http_only: bool = True,
|
|
18
18
|
secure: bool = True,
|
|
19
|
-
**kwargs: str | int,
|
|
19
|
+
**kwargs: str | int | None,
|
|
20
20
|
) -> None:
|
|
21
|
-
if name
|
|
22
|
-
raise CookieInvalidValueError("Cookie name cannot be None")
|
|
21
|
+
if not name:
|
|
22
|
+
raise CookieInvalidValueError("Cookie name cannot be empty or None")
|
|
23
|
+
if "\r" in value or "\n" in value:
|
|
24
|
+
raise CookieInvalidValueError("Cookie value contains invalid characters")
|
|
23
25
|
self.name: str = name
|
|
24
26
|
self.value: str = value
|
|
25
27
|
self.http_only: bool = http_only
|
|
26
28
|
self.secure: bool = secure
|
|
27
|
-
self.attributes: dict[str, str | int] = kwargs
|
|
29
|
+
self.attributes: dict[str, str | int | None] = kwargs
|
|
28
30
|
|
|
29
31
|
def __repr__(self) -> str:
|
|
30
32
|
parts = [f"{self.name}={self.value};"]
|
|
31
33
|
for k, v in self.attributes.items():
|
|
34
|
+
if v is None:
|
|
35
|
+
continue
|
|
32
36
|
parts.append(f"{k}={v};")
|
|
33
37
|
if self.http_only:
|
|
34
38
|
parts.append("HttpOnly;")
|
|
@@ -2,7 +2,7 @@ nexom/__init__.py,sha256=wMpCghSUTLo67kGxKbaK2QnU7DpfICyfp3-XbDObLSA,367
|
|
|
2
2
|
nexom/__main__.py,sha256=VKT7WSe6552_mzwLwJqa55tfag5Olr28eYVhVnf9kWY,6196
|
|
3
3
|
nexom/app/__init__.py,sha256=DgKTx8GtuRJkiRwBKmLhCLlf3l19zTWwXEmeRPznzlM,1089
|
|
4
4
|
nexom/app/auth.py,sha256=ahLgrzV7v1-QFjoLu5bk69_VjQhto5jiibc3Dq8zh1I,13744
|
|
5
|
-
nexom/app/cookie.py,sha256=
|
|
5
|
+
nexom/app/cookie.py,sha256=aN0Fwd6Ype6BhFZNbA1-VP7SsQLd-HKnlKwQukMXWQs,2225
|
|
6
6
|
nexom/app/db.py,sha256=fl3SrNPOltTT3d5PqjISdS4u7SXEMRqLPotbJE0FXsY,3320
|
|
7
7
|
nexom/app/http_status_codes.py,sha256=R4ka3n4rijqvfahF5n5kS-Qrg8bZSsrvF8lGnpKWAgY,1934
|
|
8
8
|
nexom/app/middleware.py,sha256=PO3V76pdnPsKwVqxM9Lx02vqsTQeLEDU-bLJpZqUhvs,5017
|
|
@@ -26,7 +26,7 @@ nexom/assets/app/static/dog.jpeg,sha256=qGEhcg48FxRLRISzbmXvw1qvfbdluC_ukM8ZrHg7
|
|
|
26
26
|
nexom/assets/app/static/github.png,sha256=DUwjX--e_sVBdKfABfwP4M4tY9NcIYmKtRSFhxETl6k,6223
|
|
27
27
|
nexom/assets/app/static/style.css,sha256=9LxUcxaQ8ppnHEncJPuO-Mt_DYCUFv56wzlHq5ed264,12609
|
|
28
28
|
nexom/assets/app/templates/base.html,sha256=RVW_63gA1sr7pqNkfB6Djk5an_VFpowahDIHGjfV-Wk,349
|
|
29
|
-
nexom/assets/app/templates/default.html,sha256=
|
|
29
|
+
nexom/assets/app/templates/default.html,sha256=J39eEZsXiV0YmslGuR5HtzB8N8n8xz9eB86Xx4Xsog4,618
|
|
30
30
|
nexom/assets/app/templates/document.html,sha256=XzKxibNf_i5DXBN2MHwLu2_Y5KNr9hSgIYxlY5l3gT8,5694
|
|
31
31
|
nexom/assets/app/templates/footer.html,sha256=mh0mm4f1nHIGV3cjDFFi8gpYwEpgk5Jqpbjokh9DPbA,94
|
|
32
32
|
nexom/assets/app/templates/header.html,sha256=ZqtFQtL7hP8Rf5naU8jMSfE6Ce1ktA9KRb2g0PbF8Kc,341
|
|
@@ -49,9 +49,9 @@ nexom/core/log.py,sha256=q0FYz1-kkTUHvNkEBW5V1zvUv1phMYchOqwAfUXGHQI,3016
|
|
|
49
49
|
nexom/core/object_html_render.py,sha256=4yT3Aihia4oG62gr1rqZd757wEXsu78mTCCpjpVE7JM,7027
|
|
50
50
|
nexom/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
nexom/templates/auth.py,sha256=q-kNIpi2M1UH8fmEy7lmcnM1hCTpj9r78wHXgnW-Aak,4617
|
|
52
|
-
nexom-1.0.
|
|
53
|
-
nexom-1.0.
|
|
54
|
-
nexom-1.0.
|
|
55
|
-
nexom-1.0.
|
|
56
|
-
nexom-1.0.
|
|
57
|
-
nexom-1.0.
|
|
52
|
+
nexom-1.0.10.dist-info/licenses/LICENSE,sha256=YbcHyxYLJ5jePeMS_NXpR9yiZjP5skhn32LvcKeknJw,1066
|
|
53
|
+
nexom-1.0.10.dist-info/METADATA,sha256=hnLjqvOgEwB3gANeNrvKgmpmoMoinBbr2OEAT_h3GkU,5897
|
|
54
|
+
nexom-1.0.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
55
|
+
nexom-1.0.10.dist-info/entry_points.txt,sha256=0r1egKZmF1MUo25AKPt-2d55sk5Q_EIBOQwD3JC8RgI,46
|
|
56
|
+
nexom-1.0.10.dist-info/top_level.txt,sha256=mTyUruscL3rqXvYJRo8KGwDM6PWXRzgf4CamLr8LSX4,6
|
|
57
|
+
nexom-1.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|