Add import calculate.contrib for suds

legacy27 3.6.10.1
parent 44b3991f79
commit b701c235d3

@ -19,8 +19,8 @@ import dbus.service
import dbus.mainloop.glib import dbus.mainloop.glib
from calculate.consolegui import qt from calculate.consolegui import qt
# import sudsds, time, sys
import time, sys import time, sys
import calculate.contrib
from suds import MethodNotFound from suds import MethodNotFound
import os, pwd, shutil import os, pwd, shutil
import ConfigParser import ConfigParser
@ -96,7 +96,6 @@ class SelectedMethodWgt(qt.QWidget):
self.args.method + '_view', step = 0) self.args.method + '_view', step = 0)
view = self.ClientObj.client.service[0][self.args.method + \ view = self.ClientObj.client.service[0][self.args.method + \
'_view'](int(self.ClientObj.sid), view_params) '_view'](int(self.ClientObj.sid), view_params)
# except sudsds.MethodNotFound:
except MethodNotFound: except MethodNotFound:
_print('Method not found: ', self.args.method + '_view') _print('Method not found: ', self.args.method + '_view')
self.close() self.close()

@ -23,8 +23,8 @@ def debug(level, *args):
for s in args: for s in args:
print s, print s,
print print
# import urllib2, sudsds
import urllib2 import urllib2
import calculate.contrib
from suds import MethodNotFound from suds import MethodNotFound
import re import re
@ -256,7 +256,6 @@ class MainFrameRes(qt.QWidget):
table.onClick + '_view', step = 0) #int(table.step) if table.step else 0) table.onClick + '_view', step = 0) #int(table.step) if table.step else 0)
view = self.client.service[0][table.onClick + '_view']( view = self.client.service[0][table.onClick + '_view'](
sid, view_params) sid, view_params)
# except sudsds.MethodNotFound, e:
except MethodNotFound, e: except MethodNotFound, e:
_print(e) _print(e)
return return
@ -380,7 +379,6 @@ class MainFrameRes(qt.QWidget):
self.method_name + '_view', step = None) self.method_name + '_view', step = None)
view = self.client.service[0][self.method_name + '_view'] \ view = self.client.service[0][self.method_name + '_view'] \
(sid, view_params) (sid, view_params)
# except sudsds.MethodNotFound:
except MethodNotFound: except MethodNotFound:
return return
#if self._parent.ClientObj.method_names.has_key(self.method_name): #if self._parent.ClientObj.method_names.has_key(self.method_name):

@ -21,10 +21,7 @@ if hasattr(u2,"ssl"):
import os, re, sys import os, re, sys
from calculate.core.datavars import DataVarsCore from calculate.core.datavars import DataVarsCore
# from sudsds.transport.http import HttpTransport, SUDSHTTPRedirectHandler, \ import calculate.contrib
# CheckingHTTPSConnection, CheckingHTTPSHandler, \
# PYOPENSSL_AVAILABLE, PyOpenSSLSocket
from suds.transport.http import HttpTransport from suds.transport.http import HttpTransport
try: try:

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from calculate.consolegui import qt from calculate.consolegui import qt
# from sudsds import WebFault import calculate.contrib
from suds import WebFault from suds import WebFault
import logging, OpenSSL import logging, OpenSSL
import ConfigParser, os, urllib2 import ConfigParser, os, urllib2

@ -24,7 +24,7 @@ from more import show_msg, LabelWordWrap, MultipleChoice, SelectTable, \
ExpertWidget, ButtonsWidget, show_question, PlusRow, \ ExpertWidget, ButtonsWidget, show_question, PlusRow, \
ReadonlyCheckBox, get_view_params, ImageLabel, SelectList, \ ReadonlyCheckBox, get_view_params, ImageLabel, SelectList, \
QComboWgt, _print, get_system_rgb, ParameterWindow, get_icon QComboWgt, _print, get_system_rgb, ParameterWindow, get_icon
# from sudsds import WebFault import calculate.contrib
from suds import WebFault from suds import WebFault
from calculate.lib.utils.text import _u8 from calculate.lib.utils.text import _u8
from calculate.lib.utils.tools import Sizes from calculate.lib.utils.tools import Sizes

Loading…
Cancel
Save