--- a/connectors/PYRO/PSK_Adapter.py Wed Mar 13 14:27:24 2019 +0300
+++ b/connectors/PYRO/PSK_Adapter.py Wed Mar 13 15:43:45 2019 +0300
@@ -70,9 +70,6 @@
return _getProtocolAdapter(protocol)
-Pyro.protocol.getProtocolAdapter = getProtocolAdapter
-
-
_processStringURI = Pyro.core.processStringURI
@@ -91,4 +88,13 @@
return _processStringURI(URI)
-Pyro.core.processStringURI = processStringURI
+def setupPSKAdapter():
+ """
+ Add PyroAdapter to the list of available in
+ Pyro adapters and handle new supported protocols
+
+ This function should be called after
+ reimport of Pyro module to enable PYROS:// again.
+ """
+ Pyro.protocol.getProtocolAdapter = getProtocolAdapter
+ Pyro.core.processStringURI = processStringURI