cobalt.py

changeset 15
e7999383db5a
parent 14
558379fd6d6a
child 16
6672cecf3ed1
equal deleted inserted replaced
14:558379fd6d6a 15:e7999383db5a
36 import json 36 import json
37 import urllib 37 import urllib
38 import urllib2 38 import urllib2
39 import hgapi 39 import hgapi
40 import os 40 import os
41 from suds.xsd.doctor import Import 41 import suds
42 from suds.xsd.doctor import ImportDoctor
43 from suds.client import Client
44 42
45 try: 43 try:
46 with open ('cobalt.json', 'r') as fp: 44 with open ('cobalt.json', 'r') as fp:
47 g_config = json.loads (fp.read()) 45 g_config = json.loads (fp.read())
48 except IOError as e: 46 except IOError as e:
58 # SOAP stuff 56 # SOAP stuff
59 # 57 #
60 suds_active = False 58 suds_active = False
61 59
62 try: 60 try:
63 suds_import = Import ('http://schemas.xmlsoap.org/soap/encoding/', \ 61 suds_import = suds.xsd.doctor.Import ('http://schemas.xmlsoap.org/soap/encoding/', 'http://schemas.xmlsoap.org/soap/encoding/')
64 'http://schemas.xmlsoap.org/soap/encoding/') 62 suds_client = suds.client.Client ('https://zandronum.com/tracker/api/soap/mantisconnect.php?wsdl', plugins=[suds.xsd.doctor.ImportDoctor (suds_import)])
65 suds_client = Client ('https://zandronum.com/tracker/api/soap/mantisconnect.php?wsdl', \
66 plugins=[ImportDoctor (suds_import)])
67 suds_active = True 63 suds_active = True
68 except Exception: 64 except Exception:
69 pass 65 pass
70 66
71 btannounce_active = False 67 btannounce_active = False

mercurial