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

Members with nillable=false and maxOccurs=0 still set nillable #142

Merged
merged 1 commit into from Jun 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion rpclib/protocol/xml/model.py
Expand Up @@ -145,7 +145,7 @@ def get_members_etree(prot, cls, inst, parent):
prot.to_parent_element(v, sv, cls.get_namespace(), parent, k)

# Don't include empty values for non-nillable optional attributes.
elif subvalue is not None or (not v.Attributes.nillable or v.Attributes.min_occurs > 0):
elif subvalue is not None or v.Attributes.min_occurs > 0:
prot.to_parent_element(v, subvalue, cls.get_namespace(), parent, k)


Expand Down