diff --git a/extras/soap-tools/getcache.py b/extras/soap-tools/getcache.py index 4ad13aa33d976a81bbf427b1103687f996b722f3..f40bc9abd0f7ebbadea314e0f95b06f509849d07 100755 --- a/extras/soap-tools/getcache.py +++ b/extras/soap-tools/getcache.py @@ -1,16 +1,6 @@ #!/usr/bin/env python -# Monkey patch suds, because for some weird reason the location -# http://www.w3.org/2001/xml.xsd is used for the XML namespace, but the W3C -# seems to respond too slow on that url. We use therefore use -# http://www.w3.org/2009/01/xml.xsd which fixes this. -from suds.xsd.sxbasic import Import -_import_open = Import.open -def _import_open_patched(self, *args, **kwargs): - if self.location == 'http://www.w3.org/2001/xml.xsd': - self.location = 'http://www.w3.org/2009/01/xml.xsd' - return _import_open(self, *args, **kwargs) -Import.open = _import_open_patched +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() import sys from datetime import datetime, timedelta diff --git a/extras/soap-tools/getgeneandtranscript.py b/extras/soap-tools/getgeneandtranscript.py index d49c4e18bfc1aa4633a64047a8608b71368b9585..266a40f8dd7eb7c62c19fd22ef55cbb38f8209d3 100755 --- a/extras/soap-tools/getgeneandtranscript.py +++ b/extras/soap-tools/getgeneandtranscript.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client diff --git a/extras/soap-tools/gettranscriptinfo.py b/extras/soap-tools/gettranscriptinfo.py index b79aba42a8e593fa8849b9ec7c9919581aeeadd0..05dcbfb463d4b240fbc468ca48f7d594c9d2851c 100755 --- a/extras/soap-tools/gettranscriptinfo.py +++ b/extras/soap-tools/gettranscriptinfo.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client diff --git a/extras/soap-tools/gettranscriptsandinfo.py b/extras/soap-tools/gettranscriptsandinfo.py index 4ff4877d6abb508c4890b94924cfe5df4befb3d3..351b71da92509ab311d3b226cc0779a06cd17180 100755 --- a/extras/soap-tools/gettranscriptsandinfo.py +++ b/extras/soap-tools/gettranscriptsandinfo.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client diff --git a/extras/soap-tools/gettranscriptsbygenename.py b/extras/soap-tools/gettranscriptsbygenename.py index a68b99c5b720d0bcd690157ff712563b1c5f1389..1ce7127ed42a17c9e7f98bdf9b995e3a4afd1362 100755 --- a/extras/soap-tools/gettranscriptsbygenename.py +++ b/extras/soap-tools/gettranscriptsbygenename.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client diff --git a/extras/soap-tools/info.py b/extras/soap-tools/info.py index 3a48b7b6854a4fa3cf57f82e30fd1add9391c3a1..d2308cc76fd99f7b3c7e49d8f689b0c75e6a8b61 100755 --- a/extras/soap-tools/info.py +++ b/extras/soap-tools/info.py @@ -10,6 +10,8 @@ # This code is in the public domain; it can be used for whatever purpose # with absolutely no restrictions. +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client # https://fedorahosted.org/suds/ diff --git a/extras/soap-tools/namecheck.py b/extras/soap-tools/namecheck.py index c0f4852451de449be6f6bb55572423b06fbf034c..470a0b159a30f60f2e31612dee9e7d958ac93166 100755 --- a/extras/soap-tools/namecheck.py +++ b/extras/soap-tools/namecheck.py @@ -12,6 +12,8 @@ # This code is in the public domain; it can be used for whatever purpose # with absolutely no restrictions. +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client # https://fedorahosted.org/suds/ diff --git a/extras/soap-tools/positionconvert.py b/extras/soap-tools/positionconvert.py index 7e38923497419fa1abf4e6622be2062f63374513..2bbea9e9932a01cd9aa0509ce252bcd27f594c45 100755 --- a/extras/soap-tools/positionconvert.py +++ b/extras/soap-tools/positionconvert.py @@ -3,6 +3,8 @@ # Usage: # ./positionconvert.py hg18 'NC_000011.9:g.111959695G>T' +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client # https://fedorahosted.org/suds/ diff --git a/extras/soap-tools/slicechromosomebygene.py b/extras/soap-tools/slicechromosomebygene.py index d0de45f9b2647d22d29eebed2e43dde36bb88cd7..dacbb134e1ae839fc9a97dbe0deca18f2e4ee609 100755 --- a/extras/soap-tools/slicechromosomebygene.py +++ b/extras/soap-tools/slicechromosomebygene.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from mutalyzer.util import monkey_patch_suds; monkey_patch_suds() + import sys from suds.client import Client from suds import WebFault