Commit 0ef428cd authored by tander67's avatar tander67 Committed by Olivier R-D

Fixed adding methods

Method output arguments must be defined from the ‘outputs’ argument.
parent 86cd4e2d
......@@ -329,7 +329,7 @@ class Node(object):
if inputs:
method.add_property(qname.NamespaceIndex, "InputArguments", [self._vtype_to_argument(vtype) for vtype in inputs])
if outputs:
method.add_property(qname.NamespaceIndex, "OutputArguments", [self._vtype_to_argument(vtype) for vtype in inputs])
method.add_property(qname.NamespaceIndex, "OutputArguments", [self._vtype_to_argument(vtype) for vtype in outputs])
self.server.add_method_callback(method.nodeid, callback)
return method
......
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