connectors/__init__.py
changeset 1773 38fde37c3766
parent 1767 c74815729afd
child 1785 0ff2a45dcefa
equal deleted inserted replaced
1772:c3679f96020b 1773:38fde37c3766
    37 
    37 
    38 connectors = {name:
    38 connectors = {name:
    39               _GetLocalConnectorClassFactory(name)
    39               _GetLocalConnectorClassFactory(name)
    40               for name in listdir(_base_path)
    40               for name in listdir(_base_path)
    41               if (path.isdir(path.join(_base_path, name))
    41               if (path.isdir(path.join(_base_path, name))
    42                   and not name.startswith("__"))
    42                   and not name.startswith("__"))}
    43 }
       
    44 
    43 
    45 
    44 
    46 def ConnectorFactory(uri, confnodesroot):
    45 def ConnectorFactory(uri, confnodesroot):
    47     """
    46     """
    48     Return a connector corresponding to the URI
    47     Return a connector corresponding to the URI