From d1fee3670cd7f04dabe6a8e853bf8269be147d62 Mon Sep 17 00:00:00 2001 From: jortel Date: Tue, 11 May 2010 22:06:53 +0000 Subject: Fix ImportDoctor onLoad() plugin API. --- suds/xsd/doctor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suds/xsd/doctor.py b/suds/xsd/doctor.py index 2ac3521..857dc99 100644 --- a/suds/xsd/doctor.py +++ b/suds/xsd/doctor.py @@ -214,7 +214,7 @@ class ImportDoctor(Doctor, Plugin): def onLoad(self, context): root = context.root - if root.get('name') == 'schema': + if Namespace.xsd(root.namespace()): self.examine(root) else: pass \ No newline at end of file -- cgit v1.2.1