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

Broken test with extension base defined after the extension. #72

Closed
wants to merge 1 commit into from
Closed

Broken test with extension base defined after the extension. #72

wants to merge 1 commit into from

Conversation

iurisilvio
Copy link
Contributor

class ComplexType(__name__ + '.Base'):
    INHERITANCE = xsd.Inheritance.EXTENSION
    INDICATOR = xsd.Sequence
    Field2 = xsd.Element(xsd.String, minOccurs=0)

    @classmethod
    def create(cls):
        instance = cls()
        return instance

class Base(xsd.ComplexType):
    INHERITANCE = None
    INDICATOR = xsd.Sequence
    Field1 = xsd.Element(xsd.String)

    @classmethod
    def create(cls, Field1):
        instance = cls()
        instance.Field1 = Field1
        return instance

`class ComplexType(__name__ + '.Base'):`
@iurisilvio
Copy link
Contributor Author

This problem is from a real WSDL file. Element ordering is not important for XSD schema spec.

@FelixSchwarz
Copy link
Member

cherry-picked as 00e0b05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants