Commit f49068a2 authored by JPortela's avatar JPortela Committed by oroulet

added the parameter to the parser and xml importer

parent f2ff44b8
......@@ -644,6 +644,7 @@ class XmlImporter:
f.DataType = field.datatype
f.ValueRank = field.valuerank
f.IsOptional = field.optional
f.MaxStringLength = field.max_str_len
if f.IsOptional:
optional = True
if field.arraydim is None:
......
......@@ -84,6 +84,7 @@ class Field:
self.arraydim = data.get("ArrayDimensions", None) # FIXME: check type
self.value = int(data.get("Value", 0))
self.desc = data.get("Description", "")
self.max_str_len = int(data.get("MaxStringLength", 0))
class RefStruct:
......
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