git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2to3 -f raise
[sfa.git]
/
wsdl
/
sfa2wsdl.py
diff --git
a/wsdl/sfa2wsdl.py
b/wsdl/sfa2wsdl.py
index
3811d70
..
2ec1307
100755
(executable)
--- a/
wsdl/sfa2wsdl.py
+++ b/
wsdl/sfa2wsdl.py
@@
-9,7
+9,6
@@
import os, sys
import time
import pdb
import xml.dom.minidom
import time
import pdb
import xml.dom.minidom
-#import xml.dom.ext
import apistub
import inspect
import apistub
import inspect
@@
-167,7
+166,7
@@
class WSDLGen:
return "xsd:string"
else:
pdb.set_trace()
return "xsd:string"
else:
pdb.set_trace()
- raise SoapError
, "Cannot handle %s objects" % arg_type
+ raise SoapError
("Cannot handle %s objects" % arg_type)
def param_type(self, arg):
return (self.name_complex_type(arg))
def param_type(self, arg):
return (self.name_complex_type(arg))
@@
-327,10
+326,9
@@
class WSDLGen:
def pretty_print(self):
if (self.wsdl):
def pretty_print(self):
if (self.wsdl):
- #xml.dom.ext.PrettyPrint(self.wsdl)
- xml.dom.minidom.Document.toprettyxml(self.wsdl)
+ print xml.dom.minidom.Document.toprettyxml(self.wsdl)
else:
else:
- raise Exception("Empty WSDL")
+
raise Exception("Empty WSDL")
def main():
parser = OptionParser()
def main():
parser = OptionParser()