geopython/OWSLib — pull request #167 by eykamp (2014-07-11 11:12:54+00:00)
Title: Better handling of AnyValue

This improves wps handling of AnyValue, and fixes potential crashes.

1) AnyValue should not be added to the list of allowed values, as it is itself not an allowed value, but rather a signifier that any value is permitted. To better distinguish these cases, I added an anyValue flag, which defaults to False, and gets set to True if the AnyValue tag is encountered. (This is also how OpenLayers works, so the general semantics will be familiar to anyone working with that lib.)

2) If AnyValue is present and the datatype is numeric, then the current code will crash trying to convert AnyValue to a number (which cannot be done). This patch prevents that crash.