equal
deleted
inserted
replaced
36 if servicetype in connector_types: |
36 if servicetype in connector_types: |
37 # import module according to uri type |
37 # import module according to uri type |
38 connectormodule = getattr(__import__("connectors."+servicetype), servicetype) |
38 connectormodule = getattr(__import__("connectors."+servicetype), servicetype) |
39 factoryname = servicetype + "_connector_factory" |
39 factoryname = servicetype + "_connector_factory" |
40 return getattr(connectormodule, factoryname)(uri, pluginsroot) |
40 return getattr(connectormodule, factoryname)(uri, pluginsroot) |
|
41 elif servicetype == "LOCAL": |
|
42 import PYRO |
|
43 return PYRO.PYRO_connector_factory( |
|
44 "PYRO://127.0.0.1:"+str(pluginsroot.runtime_port), |
|
45 pluginsroot) |
41 else : |
46 else : |
42 return None |
47 return None |
43 |
48 |