Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xmlimporter] Support to make auto load type definitions optional #1599

Conversation

bitkeeper
Copy link
Member

To the import_xml an optional argument auto_load_definitions is added. Default is True.

Case:
With commit de8269e import_xml automatic load(on the fly code generation) the type defintions.

When using your own extension object and enum implementation (with ua.register_extension_object ua.register_enum) this is unwanted behaviour.

Previous work flow was:

  • import xml
  • register own extension object and enum implementations
  • for the remain stuff call load_data_type_definitions()

To make this possible again an option is required to prevent the auto load definitions when calling the import_xml method.

To the `import_xml` an optional argument `auto_load_definitions` is added. Default is True.

Case:
With commit de8269e `import_xml` automatic load(on the fly code generation) the type defintions.

When using your own extension object and enum implementation (with `ua.register_extension_object`  `ua.register_enum`) this is unwanted behaviour.

Previous work flow was:
* import xml
* register own extension object and enum implementations
* for the remain stuff call `load_data_type_definitions()`

To make this possible again an option is required to prevent the auto load definitions when calling the `import_xml` method.
@bitkeeper bitkeeper force-pushed the features/option_to_control_auto_load_definitions branch from 2969826 to 8c9ca2e Compare March 7, 2024 17:08
@bitkeeper bitkeeper requested a review from oroulet March 8, 2024 08:09
@oroulet oroulet merged commit 0948605 into FreeOpcUa:master Mar 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants