afgutils 1.3.0__tar.gz → 1.3.2__tar.gz
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.
- {afgutils-1.3.0 → afgutils-1.3.2}/PKG-INFO +1 -1
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/cgi.py +8 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/utils.py +2 -2
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils.egg-info/PKG-INFO +1 -1
- {afgutils-1.3.0 → afgutils-1.3.2}/setup.py +1 -1
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/__init__.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/advanceai_util.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/credolab.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/db.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/email.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/s3.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils/trandata.py +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils.egg-info/SOURCES.txt +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils.egg-info/dependency_links.txt +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils.egg-info/requires.txt +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/afgutils.egg-info/top_level.txt +0 -0
- {afgutils-1.3.0 → afgutils-1.3.2}/setup.cfg +0 -0
|
@@ -17,7 +17,12 @@ class FieldStorage:
|
|
|
17
17
|
|
|
18
18
|
def __init__(self):
|
|
19
19
|
self._fields: dict[str, FieldStorage.Field] = {}
|
|
20
|
+
request_method: str = os.getenv("REQUEST_METHOD")
|
|
20
21
|
self.body_data: str = sys.stdin.read()
|
|
22
|
+
# if request_method == "POST":
|
|
23
|
+
# self.body_data: str = sys.stdin.read()
|
|
24
|
+
# else:
|
|
25
|
+
# self.body_data=""
|
|
21
26
|
self._query_string_parsed: dict[str, FieldStorage.Field] = {}
|
|
22
27
|
self._body_data_parsed: dict[str, Any] = {}
|
|
23
28
|
self._populate_fields()
|
|
@@ -46,6 +51,9 @@ class FieldStorage:
|
|
|
46
51
|
elif content_type == "application/json":
|
|
47
52
|
self._body_data_parsed: dict[str, Any] = json.loads(self.body_data)
|
|
48
53
|
self._fields.update({key: self.Field(value=value) for key, value in self._body_data_parsed.items()})
|
|
54
|
+
if type(x_cgi_headers:=self._body_data_parsed.get("X_CGI_HEADERS")) is dict:
|
|
55
|
+
for k, v in x_cgi_headers.items():
|
|
56
|
+
if not k.startswith("X_"): os.environ[k]=v
|
|
49
57
|
elif content_type == "application/xml":
|
|
50
58
|
self._body_data_parsed = xmltodict.parse(self.body_data)
|
|
51
59
|
self._fields.update({key: self.Field(value=value) for key, value in self._body_data_parsed.items()})
|
|
@@ -304,7 +304,7 @@ class AfgFreezableMixin:
|
|
|
304
304
|
self._freeze()
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
class AfgFreezableObject(AfgFreezableMixin,
|
|
307
|
+
class AfgFreezableObject(AfgFreezableMixin, AfgBaseMixin):
|
|
308
308
|
"""
|
|
309
309
|
Extends AfgBaseObject with AfgFreezableMixin:
|
|
310
310
|
|
|
@@ -350,7 +350,7 @@ class AfgQueryResultMixin:
|
|
|
350
350
|
super().__init__()
|
|
351
351
|
|
|
352
352
|
|
|
353
|
-
class AfgQueryResult(AfgQueryResultMixin,
|
|
353
|
+
class AfgQueryResult(AfgQueryResultMixin, AfgFreezableMixin, AfgBaseMixin):
|
|
354
354
|
"""
|
|
355
355
|
Extends AfgFreezableObject with AfgQueryResultMixin:
|
|
356
356
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|