diff options
author | jortel <devnull@localhost> | 2010-09-08 21:04:09 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2010-09-08 21:04:09 +0000 |
commit | f989cdca38bdc180ce9d10b4c017f46b6af0f86a (patch) | |
tree | e0a3d0a13291909458de0d62958d668f3b05c474 | |
parent | e7a317f1a20a4d3c86ac85785bb32d24c3d1078f (diff) | |
download | suds-f989cdca38bdc180ce9d10b4c017f46b6af0f86a.tar.gz |
Allow for soapenc array type without trailing [].
-rw-r--r-- | suds/__init__.py | 2 | ||||
-rw-r--r-- | suds/soaparray.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/suds/__init__.py b/suds/__init__.py index 517c5b1..68d6510 100644 --- a/suds/__init__.py +++ b/suds/__init__.py @@ -27,7 +27,7 @@ import sys # __version__ = '0.4' -__build__="GA R696-20100908" +__build__="GA R697-20100908" # # Exceptions diff --git a/suds/soaparray.py b/suds/soaparray.py index c7b85e5..04847d5 100644 --- a/suds/soaparray.py +++ b/suds/soaparray.py @@ -39,7 +39,10 @@ class Attribute(SXAttribute): @type aty: The value of wsdl:arrayType. """ SXAttribute.__init__(self, schema, root) - self.aty = aty[:-2] + if aty.endswith('[]'): + self.aty = aty[:-2] + else: + self.aty = aty def autoqualified(self): aqs = SXAttribute.autoqualified(self) |