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
1a5475f1
Commit
1a5475f1
authored
Oct 10, 2016
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack around broken namespace import from xml
parent
cb034f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opcua/common/xmlparser.py
opcua/common/xmlparser.py
+4
-2
No files found.
opcua/common/xmlparser.py
View file @
1a5475f1
...
...
@@ -92,10 +92,12 @@ class XMLParser(object):
for
el
in
child
:
self
.
aliases
[
el
.
attrib
[
"Alias"
]]
=
self
.
_get_node_id
(
el
.
text
)
elif
name
==
'NamespaceUris'
:
s_uris
=
self
.
server
.
get_namespace_array
()
for
ns_index
,
ns_element
in
enumerate
(
child
):
ns_uri
=
ns_element
.
text
ns_server_index
=
self
.
server
.
register_namespace
(
ns_uri
)
self
.
namespaces
[
ns_index
+
1
]
=
(
ns_server_index
,
ns_uri
)
if
ns_uri
not
in
s_uris
:
ns_server_index
=
self
.
server
.
register_namespace
(
ns_uri
)
self
.
namespaces
[
ns_index
+
1
]
=
(
ns_server_index
,
ns_uri
)
else
:
node
=
self
.
_parse_node
(
name
,
child
)
nodes
.
append
(
node
)
...
...
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