MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / _make_registration

Method _make_registration

opcua/common/structures.py:195–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 _file.close()
194
195 def _make_registration(self):
196 code = "\n\n"
197 for struct in self.model:
198 code += "ua.register_extension_object('{name}', ua.NodeId.from_string('{nodeid}'), {name})\n".format(name=struct.name, nodeid=struct.typeid)
199 return code
200
201 def get_python_classes(self, env=None):
202 return _generate_python_class(self.model, env=env)

Callers 1

save_to_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected