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

use of auto generated binding classes #300

Closed
piscvau opened this issue May 25, 2022 · 2 comments
Closed

use of auto generated binding classes #300

piscvau opened this issue May 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@piscvau
Copy link

piscvau commented May 25, 2022

Hello
There is a get_binding method in the Xsd Element class which returns the self.binding attribute if it exists or creates one if it does not exist.
This attribute does not seem to be initialized.
I created it after creating the schema and importing the module of auto generated bindings. However the get_binding_method of the class Xsd_element recreates a binding class if replace_existing is False.Is this on purpose?

@brunato
Copy link
Member

brunato commented May 25, 2022

Hi,
this should be a typo, the test need to be changed to:

if self.binding is None or replace_existing:

thank you!

@brunato brunato added the bug Something isn't working label May 25, 2022
brunato added a commit that referenced this issue Jun 11, 2022
@brunato
Copy link
Member

brunato commented Jun 11, 2022

Fix available with release v1.11.2

@brunato brunato closed this as completed Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants