equal
deleted
inserted
replaced
35 import Pyro.core |
35 import Pyro.core |
36 import Pyro.util |
36 import Pyro.util |
37 from Pyro.errors import PyroError |
37 from Pyro.errors import PyroError |
38 |
38 |
39 import PSKManagement as PSK |
39 import PSKManagement as PSK |
40 import connectors.PYRO.PSK_Adapter |
40 from connectors.PYRO.PSK_Adapter import setupPSKAdapter |
41 from runtime import PlcStatus |
41 from runtime import PlcStatus |
42 |
42 |
43 |
43 |
44 def switch_pyro_adapter(use_ssl): |
44 def switch_pyro_adapter(use_ssl): |
45 """ |
45 """ |
47 This is workaround for Pyro, because it doesn't work with SSL wrapper. |
47 This is workaround for Pyro, because it doesn't work with SSL wrapper. |
48 """ |
48 """ |
49 # Pyro.config.PYRO_BROKEN_MSGWAITALL = use_ssl |
49 # Pyro.config.PYRO_BROKEN_MSGWAITALL = use_ssl |
50 reload(Pyro.protocol) |
50 reload(Pyro.protocol) |
51 if use_ssl: |
51 if use_ssl: |
52 connectors.PYRO.PSK_Adapter.setupPSKAdapter() |
52 setupPSKAdapter() |
53 |
53 |
54 |
54 |
55 def PYRO_connector_factory(uri, confnodesroot): |
55 def PYRO_connector_factory(uri, confnodesroot): |
56 """ |
56 """ |
57 This returns the connector to Pyro style PLCobject |
57 This returns the connector to Pyro style PLCobject |