connectors/__init__.py
changeset 227 48c13b84505c
parent 203 cb9901076a21
child 290 3bd617ae7a05
equal deleted inserted replaced
226:f301f4ed4717 227:48c13b84505c
    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