summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2009-12-10 23:22:54 +0000
committerjortel <devnull@localhost>2009-12-10 23:22:54 +0000
commit664b1b8509fcde4de50af3b387e8a865a93a3c1c (patch)
tree67c271bc065bfa2dbf246fe4d10942c189558b99
parent9cd3848f42020d1fb78af91ae63502977c81bee8 (diff)
downloadsuds-664b1b8509fcde4de50af3b387e8a865a93a3c1c.tar.gz
Modify fix for #254 to handle cases where the element that was a restriction of the simpleType was referenced by @ref=.
-rw-r--r--suds/xsd/sxbasic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/suds/xsd/sxbasic.py b/suds/xsd/sxbasic.py
index 64cc7bb..b5493d8 100644
--- a/suds/xsd/sxbasic.py
+++ b/suds/xsd/sxbasic.py
@@ -38,7 +38,7 @@ class RestrictionMatcher:
For use with L{NodeFinder} to match restriction.
"""
def match(self, n):
- return ( n.restriction() and n.ref is not None )
+ return isinstance(n, Restriction)
class TypedContent(Content):