vortex-cli 6.4.0__tar.gz → 6.4.1__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.
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/PKG-INFO +1 -1
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/pyproject.toml +1 -1
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/gateway.py +17 -2
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/PKG-INFO +1 -1
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/LICENSE +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/README.md +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/setup.cfg +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/__init__.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/__main__.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/cli.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/colour.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/__init__.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/agenda.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/clean.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/clone.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/code.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/compile.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/config.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/copy.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/db.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/delete.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/docs.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/execute.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/export.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/find.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/grep.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/import_.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/keyword.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/libs.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/list.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/log.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/new.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/pull.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/push.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/render.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/schema.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/status.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/undo.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/use.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/commands/watch.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/constants.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/docs/Blackbook v2.md +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/docs/Blackbook.pdf +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/docs/index.html +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/docs/marked.min.js +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/lib/puakma-6.0.40.jar +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/libs.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/logging.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/main.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/models.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/soap.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/spinner.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/util.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/webdesign.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex/workspace.py +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/SOURCES.txt +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/dependency_links.txt +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/entry_points.txt +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/requires.txt +0 -0
- {vortex_cli-6.4.0 → vortex_cli-6.4.1}/vortex_cli.egg-info/top_level.txt +0 -0
|
@@ -214,6 +214,17 @@ class GatewayCapabilities(NamedTuple):
|
|
|
214
214
|
return [name for name, grant in self.roles.items() if grant.effective]
|
|
215
215
|
|
|
216
216
|
|
|
217
|
+
def _form_body(payload: dict[str, Any]) -> dict[str, str]:
|
|
218
|
+
"""
|
|
219
|
+
The gateway reads a request body from the 'Data' document item, and
|
|
220
|
+
the server fills that item completely only for a form-encoded POST.
|
|
221
|
+
A raw application/json body over ~512 KB arrives as an EMPTY item
|
|
222
|
+
(MISSING_PARAMETER for an upload of any real size), so every POST is
|
|
223
|
+
sent as one form field, the same way the webdesign client does it.
|
|
224
|
+
"""
|
|
225
|
+
return {"Data": json.dumps(payload)}
|
|
226
|
+
|
|
227
|
+
|
|
217
228
|
class GatewayClient:
|
|
218
229
|
def __init__(self, server: PuakmaServer) -> None:
|
|
219
230
|
self.server = server
|
|
@@ -568,7 +579,9 @@ class GatewayClient:
|
|
|
568
579
|
url = self._url(endpoint)
|
|
569
580
|
logger.debug(f"POST {url}")
|
|
570
581
|
try:
|
|
571
|
-
resp = self.server._client.post(
|
|
582
|
+
resp = self.server._client.post(
|
|
583
|
+
url, data=_form_body(payload), timeout=timeout
|
|
584
|
+
)
|
|
572
585
|
except httpx.HTTPError as e:
|
|
573
586
|
raise GatewayUnavailable(f"Gateway request failed: {e} ({url})") from e
|
|
574
587
|
return self._parse_reply(resp.status_code, resp.text, url)
|
|
@@ -582,7 +595,9 @@ class GatewayClient:
|
|
|
582
595
|
url = self._url(endpoint)
|
|
583
596
|
logger.debug(f"POST {url}")
|
|
584
597
|
try:
|
|
585
|
-
resp = await self.server._aclient.post(
|
|
598
|
+
resp = await self.server._aclient.post(
|
|
599
|
+
url, data=_form_body(payload), timeout=timeout
|
|
600
|
+
)
|
|
586
601
|
except httpx.HTTPError as e:
|
|
587
602
|
raise GatewayUnavailable(f"Gateway request failed: {e} ({url})") from e
|
|
588
603
|
return self._parse_reply(resp.status_code, resp.text, url)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|