feat: add context view demo

This commit is contained in:
Gergő Jedlicska
2023-10-26 15:17:40 +02:00
parent c526802a6d
commit 31965969b1
3 changed files with 9 additions and 5 deletions
+4
View File
@@ -75,6 +75,10 @@ def automate_function(
f"{function_inputs.forbidden_speckle_type}"
)
# set the automation context view, to the original model / version view
# to show the offending objects
automate_context.set_context_view()
else:
automate_context.mark_run_success("No forbidden types found.")
Generated
+4 -4
View File
@@ -803,13 +803,13 @@ files = [
[[package]]
name = "specklepy"
version = "2.17.6"
version = "2.17.8"
description = "The Python SDK for Speckle 2.0"
optional = false
python-versions = ">=3.8.0,<4.0"
files = [
{file = "specklepy-2.17.6-py3-none-any.whl", hash = "sha256:6dfe0f8a23beaa4cccf8e216e10fb31aebd1f122d4b212c6f74a6de7c064ca88"},
{file = "specklepy-2.17.6.tar.gz", hash = "sha256:21b5787a26bd2d289066243926699d8e726a34f35401095a961f77c300ed21dc"},
{file = "specklepy-2.17.8-py3-none-any.whl", hash = "sha256:76494676bd3bafc2e222d4c3b0f22a2316781f9c9ac200067fb5fe4d1de3e2c7"},
{file = "specklepy-2.17.8.tar.gz", hash = "sha256:9e066b67c0edc478c4f2d949e7662f7535a058189d9fb8d6eabad550c0b88c04"},
]
[package.dependencies]
@@ -1181,4 +1181,4 @@ multidict = ">=4.0"
[metadata]
lock-version = "2.0"
python-versions = "^3.11"
content-hash = "477d2a38fe4dbb7dd25a76971a23f087d67fb699ad2a93cc26dff6f7f6c68544"
content-hash = "797bedd0237ed31ed0b9f6294271b5c0f84a4b791d43cf16f2831459abd5b5f5"
+1 -1
View File
@@ -8,7 +8,7 @@ packages = [{include = "src/speckle_automate_py"}]
[tool.poetry.dependencies]
python = "^3.11"
specklepy = "2.17.6"
specklepy = "2.17.8"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"