Commit f48963c0 authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

abstract default is False

parent 03370874
...@@ -512,6 +512,8 @@ class XmlImporter: ...@@ -512,6 +512,8 @@ class XmlImporter:
attrs.ValueRank = obj.rank attrs.ValueRank = obj.rank
if obj.abstract: if obj.abstract:
attrs.IsAbstract = obj.abstract attrs.IsAbstract = obj.abstract
else:
obj.abstract = False
if obj.dimensions: if obj.dimensions:
attrs.ArrayDimensions = obj.dimensions attrs.ArrayDimensions = obj.dimensions
node.NodeAttributes = attrs node.NodeAttributes = attrs
...@@ -550,6 +552,8 @@ class XmlImporter: ...@@ -550,6 +552,8 @@ class XmlImporter:
attrs.InverseName = ua.LocalizedText(obj.inversename) attrs.InverseName = ua.LocalizedText(obj.inversename)
if obj.abstract: if obj.abstract:
attrs.IsAbstract = obj.abstract attrs.IsAbstract = obj.abstract
else:
obj.abstract = False
if obj.symmetric: if obj.symmetric:
attrs.Symmetric = obj.symmetric attrs.Symmetric = obj.symmetric
node.NodeAttributes = attrs node.NodeAttributes = attrs
...@@ -566,6 +570,8 @@ class XmlImporter: ...@@ -566,6 +570,8 @@ class XmlImporter:
attrs.DisplayName = ua.LocalizedText(obj.displayname) attrs.DisplayName = ua.LocalizedText(obj.displayname)
if obj.abstract: if obj.abstract:
attrs.IsAbstract = obj.abstract attrs.IsAbstract = obj.abstract
else:
obj.abstract = False
if not obj.definitions: if not obj.definitions:
pass pass
else: else:
......
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