Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
f49068a2
Commit
f49068a2
authored
Oct 07, 2022
by
JPortela
Committed by
oroulet
Oct 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added the parameter to the parser and xml importer
parent
f2ff44b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
asyncua/common/xmlimporter.py
asyncua/common/xmlimporter.py
+1
-0
asyncua/common/xmlparser.py
asyncua/common/xmlparser.py
+1
-0
No files found.
asyncua/common/xmlimporter.py
View file @
f49068a2
...
...
@@ -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
:
...
...
asyncua/common/xmlparser.py
View file @
f49068a2
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment