From 664b1b8509fcde4de50af3b387e8a865a93a3c1c Mon Sep 17 00:00:00 2001 From: jortel Date: Thu, 10 Dec 2009 23:22:54 +0000 Subject: Modify fix for #254 to handle cases where the element that was a restriction of the simpleType was referenced by @ref=. --- suds/xsd/sxbasic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1