summaryrefslogtreecommitdiff
path: root/suds/xsd/sxbasic.py
diff options
context:
space:
mode:
Diffstat (limited to 'suds/xsd/sxbasic.py')
-rw-r--r--suds/xsd/sxbasic.py9
1 files changed, 5 insertions, 4 deletions
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)