Commit a4747b69 authored by Ivan Tyagov's avatar Ivan Tyagov

Use newly created document after OPCUA request.

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