diff options
author | jortel <devnull@localhost> | 2009-12-12 00:14:21 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2009-12-12 00:14:21 +0000 |
commit | 19b6877e37f76caac6e5b43278698a7776ea47d1 (patch) | |
tree | 7aa8a1d918012fc9b260d22547f9b76d52e2d050 | |
parent | f2265aac7635388466914ca752ff563acd0d0618 (diff) | |
download | suds-19b6877e37f76caac6e5b43278698a7776ea47d1.tar.gz |
Further refine fix for ticket #254 to be more constrained. Also, verified againt test case for ticket #154.
-rw-r--r-- | suds/__init__.py | 2 | ||||
-rw-r--r-- | suds/xsd/sxbasic.py | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/suds/__init__.py b/suds/__init__.py index e0704d4..f318085 100644 --- a/suds/__init__.py +++ b/suds/__init__.py @@ -29,7 +29,7 @@ import sys # __version__ = '0.3.8' -__build__="(beta) R626-20091211" +__build__="(beta) R627-20091211" # # Exceptions diff --git a/suds/xsd/sxbasic.py b/suds/xsd/sxbasic.py index b5493d8..04af36d 100644 --- a/suds/xsd/sxbasic.py +++ b/suds/xsd/sxbasic.py @@ -73,14 +73,15 @@ class TypedContent(Content): def qref(self): """ - Get the I{type} qualified reference. - This method takes into account types defined - through restriction. + Get the I{type} qualified reference to the referenced xsd type. + This method takes into account simple types defined through + restriction with are detected by determining that self is simple + (len=0) and by finding a restriction child. @return: The I{type} qualified reference. @rtype: qref """ qref = self.type - if qref is None: + if qref is None and len(self) == 0: ls = [] m = RestrictionMatcher() finder = NodeFinder(m, 1) |