M    ZSI/generate/commands.py -- changed behavior of "wsdl2py" a bit, if you call it with "args" then it will return the files names which ServiceProxy needs.  If it's called via command-line tool, "args" is None and it will return None.
M    ZSI/generate/commands.py
-- changed behavior of "wsdl2py" a bit, if you call it with "args" then it will
return the files names which ServiceProxy needs.  If it's called via command-line
tool, "args" is None and it will return None.


	From: 	  shramov@mexmat.net
	Subject: 	[Pywebsvcs-talk] wsdl2py return code
	Date: 	June 7, 2007 8:51:16 PM PDT
	To: 	  pywebsvcs-talk@lists.sourceforge.net

In svn head wsdl2py utility on successful run returns 1 
(for example runing on wsdl from zsi/test/wsdl2py/wsdl)
-- shell --
$wsdl2py -o /tmp/ Racing.wsdl 
[u'/tmp/Racing_client.py', u'/tmp/Racing_types.py', u'Racing_server.py']
$echo $?
1
-- shell --

It was introduced in svn revision 1378 in chunk (sorry for git diff)
diff --git a/zsi/ZSI/generate/commands.py b/zsi/ZSI/generate/commands.py
index 40afb07..4a854f3 100644
--- a/zsi/ZSI/generate/commands.py
+++ b/zsi/ZSI/generate/commands.py
@@ -179,11 +179,11 @@ respectively.

     if isinstance(wsdl, XMLSchema.XMLSchema): 
         wsdl.location = location
-        _wsdl2py(options, wsdl)
-        return
+        return _wsdl2py(options, wsdl)

-    _wsdl2py(options, wsdl)
-    _wsdl2dispatch(options, wsdl)
+    modules = _wsdl2py(options, wsdl)
+    modules.append(_wsdl2dispatch(options, wsdl))
+    return modules

Link to diff in sf repo
http://svn.sourceforge.net/viewvc/pywebsvcs/trunk/zsi/ZSI/generate/commands.py?view=diff&r1=1377&r2=1378

This behaviour breaks Makefile rules depending on zero return code of
successful wsdl2py invocation.
                                        Pavel


git-svn-id: c4afb4e777bcbfe9afa898413b708b5abcd43877@1396 7150bf37-e60d-0410-b93f-83e91ef0e581

acigna/pywez,acigna/pywez,acigna/pywez