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
8c584ab4
Commit
8c584ab4
authored
Jun 15, 2016
by
bitkeeper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmlimport breaks when UAVariable doesn't have value element
parent
a083a9b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
opcua/common/xmlparser.py
opcua/common/xmlparser.py
+1
-1
tests/custom_nodes.xml
tests/custom_nodes.xml
+7
-0
No files found.
opcua/common/xmlparser.py
View file @
8c584ab4
...
@@ -27,7 +27,7 @@ class NodeData(object):
...
@@ -27,7 +27,7 @@ class NodeData(object):
# variable
# variable
self
.
datatype
=
None
self
.
datatype
=
None
self
.
rank
=
-
1
# check default value
self
.
rank
=
-
1
# check default value
self
.
value
=
[]
self
.
value
=
None
self
.
valuetype
=
None
self
.
valuetype
=
None
self
.
dimensions
=
None
self
.
dimensions
=
None
self
.
accesslevel
=
None
self
.
accesslevel
=
None
...
...
tests/custom_nodes.xml
View file @
8c584ab4
...
@@ -39,5 +39,12 @@
...
@@ -39,5 +39,12 @@
</Value>
</Value>
</UAVariable>
</UAVariable>
<UAVariable
NodeId=
"i=30004"
BrowseName=
"MyXMLVariableWithoutValue"
DataType=
"String"
>
<References>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=69
</Reference>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=30002
</Reference>
</References>
</UAVariable>
</UANodeSet>
</UANodeSet>
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