From 79be90189ce67cd39e4d746f95824cc2b2403d9d Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Wed, 20 Oct 2004 22:35:59 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: WSDLTools.py -- uncommented some "import" code that I didn't think was of any use. Now I need it. ---------------------------------------------------------------------- --- WSDLTools.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/WSDLTools.py b/WSDLTools.py index b167a83..2b5d506 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -70,7 +70,7 @@ class WSDL: self.messages = CollectionNS(self) self.portTypes = CollectionNS(self) self.bindings = CollectionNS(self) - #self.imports = Collection(self) + self.imports = Collection(self) self.types = Types(self) self.extensions = [] self.strict = strict @@ -125,10 +125,10 @@ class WSDL: self.bindings[name] = item return item - #def addImport(self, namespace, location): - # item = ImportElement(namespace, location) - # self.imports[namespace] = item - # return item + def addImport(self, namespace, location): + item = ImportElement(namespace, location) + self.imports[namespace] = item + return item def load(self, document): # We save a reference to the DOM document to ensure that elements @@ -273,9 +273,9 @@ class WSDL: location = urllib.basejoin(base_location, location) element.setAttributeNS(None, 'location', location) - #location = urllib.basejoin(self.location, location) - #obimport = self.addImport(namespace, location) - #obimport._loaded = 1 + location = urllib.basejoin(self.location, location) + obimport = self.addImport(namespace, location) + obimport._loaded = 1 importdoc = DOM.loadFromURL(location) try: