connectors/__init__.py
changeset 1785 0ff2a45dcefa
parent 1773 38fde37c3766
child 1881 091005ec69c4
equal deleted inserted replaced
1784:64beb9e9c749 1785:0ff2a45dcefa
    36 
    36 
    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)) and
    42                   and not name.startswith("__"))}
    42                   not name.startswith("__"))}
    43 
    43 
    44 
    44 
    45 def ConnectorFactory(uri, confnodesroot):
    45 def ConnectorFactory(uri, confnodesroot):
    46     """
    46     """
    47     Return a connector corresponding to the URI
    47     Return a connector corresponding to the URI