canvas 0.40.0__py3-none-any.whl → 0.40.1__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.
Potentially problematic release.
This version of canvas might be problematic. Click here for more details.
- {canvas-0.40.0.dist-info → canvas-0.40.1.dist-info}/METADATA +1 -1
- {canvas-0.40.0.dist-info → canvas-0.40.1.dist-info}/RECORD +5 -5
- plugin_runner/sandbox.py +7 -1
- {canvas-0.40.0.dist-info → canvas-0.40.1.dist-info}/WHEEL +0 -0
- {canvas-0.40.0.dist-info → canvas-0.40.1.dist-info}/entry_points.txt +0 -0
|
@@ -277,14 +277,14 @@ plugin_runner/exceptions.py,sha256=YnRZiQVzbU3HrVlmEXLje_np99009YnhTRVHHyBCtqc,4
|
|
|
277
277
|
plugin_runner/installation.py,sha256=LLjtnzPk-w4go3UbXnBItJTKz1ajR_5kGQbFXTaWTFU,7693
|
|
278
278
|
plugin_runner/load_all_plugins.py,sha256=4T2gW2YljhIx4xfwf1c0F_8oIbE1ubsLj0ShkHRtlVY,5847
|
|
279
279
|
plugin_runner/plugin_runner.py,sha256=Z7ySPJSY4AMGRR0PtdXA_I3z8rxlDpjssuMspHIc79U,21655
|
|
280
|
-
plugin_runner/sandbox.py,sha256=
|
|
280
|
+
plugin_runner/sandbox.py,sha256=vxfPKkz3A31g_QAD6eqa-CFt7z6xTp4FHu6RBrxoNz8,28589
|
|
281
281
|
protobufs/canvas_generated/messages/effects.proto,sha256=sFUsIAa6nhEhJbBlLTIf7gxzvFCC7zP-yD1aZevObvY,8583
|
|
282
282
|
protobufs/canvas_generated/messages/events.proto,sha256=DSxbxKp7BTZpI4M14Sm7-XpHdUnN3bC3RapRqZbxgiQ,48751
|
|
283
283
|
protobufs/canvas_generated/messages/plugins.proto,sha256=oNainUPWFYQjgCX7bJEPI9_VnHC5VZduzOqgR4Q7dNM,109
|
|
284
284
|
protobufs/canvas_generated/services/plugin_runner.proto,sha256=doadBKn5k4xAtOgR-q_pEvW4yzxpUaHNOowMG6CL5GY,304
|
|
285
285
|
pubsub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
286
286
|
pubsub/pubsub.py,sha256=PHIvJ5SD3M-jQSYeGGSj1FuG6CvP6BQffAoGax9Uudk,1423
|
|
287
|
-
canvas-0.40.
|
|
288
|
-
canvas-0.40.
|
|
289
|
-
canvas-0.40.
|
|
290
|
-
canvas-0.40.
|
|
287
|
+
canvas-0.40.1.dist-info/METADATA,sha256=qjZMdUv-9EUOYW1OKk2CSV6pf-S7c7GQ1ay7HW-cjI4,4447
|
|
288
|
+
canvas-0.40.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
289
|
+
canvas-0.40.1.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
|
|
290
|
+
canvas-0.40.1.dist-info/RECORD,,
|
plugin_runner/sandbox.py
CHANGED
|
@@ -868,7 +868,13 @@ class Sandbox:
|
|
|
868
868
|
# evaluate the module in the sandbox if needed
|
|
869
869
|
self._evaluate_module(name)
|
|
870
870
|
|
|
871
|
-
|
|
871
|
+
imported_module = __import__(name, globals, locals, fromlist, level)
|
|
872
|
+
|
|
873
|
+
# If the module is part of the plugin, mark it as a plugin module
|
|
874
|
+
if self._same_module(name):
|
|
875
|
+
imported_module.__is_plugin__ = True # type: ignore[attr-defined]
|
|
876
|
+
|
|
877
|
+
return imported_module
|
|
872
878
|
|
|
873
879
|
def execute(self) -> dict:
|
|
874
880
|
"""Execute the given code in a restricted sandbox."""
|
|
File without changes
|
|
File without changes
|