Browse Source

----------------------------------------------------------------------

Modified Files:
 	WSDLTools.py -- uncommented some "import" code that I didn't
		think was of any use.  Now I need it.

 ----------------------------------------------------------------------
main
Joshua Boverhof 20 years ago
parent
commit
79be90189c
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      WSDLTools.py

+ 8
- 8
WSDLTools.py View File

@@ -70,7 +70,7 @@ class WSDL:
self.messages = CollectionNS(self) self.messages = CollectionNS(self)
self.portTypes = CollectionNS(self) self.portTypes = CollectionNS(self)
self.bindings = CollectionNS(self) self.bindings = CollectionNS(self)
#self.imports = Collection(self)
self.imports = Collection(self)
self.types = Types(self) self.types = Types(self)
self.extensions = [] self.extensions = []
self.strict = strict self.strict = strict
@@ -125,10 +125,10 @@ class WSDL:
self.bindings[name] = item self.bindings[name] = item
return 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): def load(self, document):
# We save a reference to the DOM document to ensure that elements # We save a reference to the DOM document to ensure that elements
@@ -273,9 +273,9 @@ class WSDL:
location = urllib.basejoin(base_location, location) location = urllib.basejoin(base_location, location)
element.setAttributeNS(None, '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) importdoc = DOM.loadFromURL(location)
try: try:


Loading…
Cancel
Save