GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit f9f4bae3 authored by payno's avatar payno

[Converter] avoid define set_propertie if the process is "IgnoreProcess"

parent 63be1dda
Pipeline #40675 passed with stages
in 2 minutes and 6 seconds
......@@ -193,22 +193,23 @@ class Converter:
file_.write(
" process_{} = {}.{}()\n".format(node.id, mod_name, class_name)
)
if hasattr(node.class_instance, "set_properties"):
# filter some orange properties
properties = node.properties
for param in (
"controlAreaVisible",
"savedWidgetGeometry",
"__version__",
"libraryListSource",
):
if param in properties:
del properties[param]
file_.write(
" process_{}.set_properties({})\n".format(
node.id, properties
if mod_name != "pypushflow.utils" and class_name != "IgnoreProcess":
if hasattr(node.class_instance, "set_properties"):
# filter some orange properties
properties = node.properties
for param in (
"controlAreaVisible",
"savedWidgetGeometry",
"__version__",
"libraryListSource",
):
if param in properties:
del properties[param]
file_.write(
" process_{}.set_properties({})\n".format(
node.id, properties
)
)
)
def _write_processing(self):
for _, link in self.workflow._representation.links.items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment