From 669fbb20daf4ceb848069ae3302a813741d76590 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Mon, 20 Dec 2004 20:36:41 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: WSDLTools.py -- removed a line that was screwing up imports/includes of when WSDL file was specified to "wsdl2py" via a relative path. XMLSchema.py -- stop requiring suffix "xsd" for schema files. ---------------------------------------------------------------------- --- WSDLTools.py | 1 - XMLSchema.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/WSDLTools.py b/WSDLTools.py index 51394a7..578b581 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -306,7 +306,6 @@ 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 diff --git a/XMLSchema.py b/XMLSchema.py index 46f18c0..ffc480c 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -105,8 +105,6 @@ class SchemaReader: """Return an XMLSchema instance loaded from the given url. url -- URL to dereference """ - if not url.endswith('xsd'): - raise SchemaError, 'unknown file type %s' %url reader = self.__readerClass() if self.__base_url: url = urllib.basejoin(self.__base_url,url)