trying out the hint from github issue
[plcapi.git] / wsdl / api2wsdl.py
index 539a39a..296048e 100755 (executable)
@@ -6,13 +6,12 @@
 # Current limitations:
 # - Invalid for the following reasons 
 # - The types are python types, not WSDL types
-# - I'm not sure of what to do with the auth structure - Need to figure out PLCAPI more closely
+# - I'm not sure of what to do with the auth structure 
 
 import os, sys
 import time
 import pdb
 import xml.dom.minidom
-import xml.dom.ext
 import inspect
 import globals
 
@@ -24,12 +23,6 @@ from PLC.Parameter import Parameter, Mixed, python_type, xmlrpc_type
 
 api = PLCAPI(None)
 
-try:
-    set
-except NameError:
-    from sets import Set
-    set = Set
-
 # Class functions
 
 def param_type(param):
@@ -152,5 +145,5 @@ add_wsdl_ports_and_bindings(wsdl)
 add_wsdl_service(wsdl)
 
 
-xml.dom.ext.PrettyPrint(wsdl)
+print wsdl.toprettyxml()