From c3f54dc95d1eb97a8fd7dda43a27dd2fb4350aa7 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Mon, 8 Dec 2003 08:04:28 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: WSDLTools.py -- partial bug fix for [ 850905 ] wsdl2py crash on a more sophisticated WSDL. We do expect a list, but nmtokens is a list separated by a single space. So if "parts" is a string, the just split it to create a list. ---------------------------------------------------------------------- --- WSDLTools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WSDLTools.py b/WSDLTools.py index da32275..9b64146 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -780,9 +780,7 @@ class SoapBodyBinding: self.encodingStyle = encodingStyle self.namespace = namespace if type(parts) in (type(''), type(u'')): - raise WSDLError( - 'The parts argument must be a sequence.' - ) + parts = parts.split() self.parts = parts self.use = use