leapfrogdevelopment/scio — pull request #2 by jstern (2013-03-01 03:26:42+00:00)
Title: set EnumType instance values to None for empty elements

Working with a wsdl that specifies something like:

...

...

Where the service returns something like this:

Resulting in an error:

elif ' ' in val:
TypeError: argument of type 'NoneType' is not iterable

What I've done here seems pretty naive; there's no check to see whether the element has the nil="true" attribute value, and it's just assumed that val ends up being None because the element looks like . So, open to suggestions on a better implementation.