Commit 01fe0a81 authored by oroulet's avatar oroulet Committed by Christian Bergmiller

cherry-pick/merge 4e5e65e2

parent 54d63786
......@@ -266,3 +266,14 @@ def get_default_value(uatype):
return ua.get_default_value(getattr(ua.VariantType, uatype))
else:
return getattr(ua, uatype)()
def data_type_to_string(dtype):
# we could just display browse name of node but it requires a query
if dtype.Identifier in ua.ObjectIdNames:
string = ua.ObjectIdNames[dtype.Identifier]
else:
string = dtype.to_string()
return string
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