Commit 4513c7e7 authored by payno's avatar payno
Browse files

[node] call set_properties if exists

parent 06c5fb30
......@@ -243,6 +243,10 @@ class Node(object):
node.load_handlers()'start execution of {0} with {1} through channel {2}'
''.format(str(process_pt), input_data, input_name))
if hasattr(node.__process_instance, 'set_properties'):
raise ValueError('no function set properties found')
if input_name in node.handlers:
out = getattr(node.__process_instance, node.handlers[input_name])(input_data)
......@@ -258,8 +262,6 @@ class Node(object):
output_channel = node.get_output_channel_name(out)
_logger.warning('--- output channel from {0} is {1}'.format(process_pt, output_channel))
_logger.warning('--- type(out) is {0}'.format(type(out)))
if hasattr(out, 'to_dict'):
return output_channel, out.to_dict()
Supports Markdown
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