Commit 2986fce2 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

palo: pylint py3

parent 2493a624
...@@ -69,13 +69,16 @@ class PALOETLConnection(XMLObject): ...@@ -69,13 +69,16 @@ class PALOETLConnection(XMLObject):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
_ignore_ssl_certificate_check = True
_fix_service_location = True
def _getSudsClient(self): def _getSudsClient(self):
# maybe client can be cached as a _v_ attribute. For now, we do not care about performance. # maybe client can be cached as a _v_ attribute. For now, we do not care about performance.
if "ignore ssl certificate check": if self._ignore_ssl_certificate_check:
client = suds.client.Client(self.getUrlString(), transport=HTTPAuthenticatedUnverifiedSSL()) client = suds.client.Client(self.getUrlString(), transport=HTTPAuthenticatedUnverifiedSSL())
else: else:
client = suds.client.Client(self.getUrlString()) client = suds.client.Client(self.getUrlString())
if "fix service location": if self._fix_service_location:
# XXX The axis2 generated webservice only supports http on port 8080. # XXX The axis2 generated webservice only supports http on port 8080.
# It seems to be using an old and buggy version of axis2. # It seems to be using an old and buggy version of axis2.
# Easiest workaround is to force the port (in WSDL terminology) location. # Easiest workaround is to force the port (in WSDL terminology) location.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment