Commit a4747b69 authored by Ivan Tyagov's avatar Ivan Tyagov

Use newly created document after OPCUA request.

parent 786c11bc
...@@ -24,8 +24,9 @@ if default_opcua_document is None: ...@@ -24,8 +24,9 @@ if default_opcua_document is None:
default_id = "1" default_id = "1"
default_opcua_document = context.opcua_document_module.get(default_id, None) default_opcua_document = context.opcua_document_module.get(default_id, None)
if default_opcua_document is None: if default_opcua_document is None:
context.opcua_document_module.newContent(portal_type = "OPCUA Document", default_opcua_document = context.opcua_document_module.newContent(
id = default_id) portal_type = "OPCUA Document",
id = default_id)
# do selection of operation in a REST fashion based in HTTP method # do selection of operation in a REST fashion based in HTTP method
if http_method is None: if http_method is None:
......
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