connectors/__init__.py
changeset 2469 e8760be772d5
parent 2463 8742337a9fe3
child 2478 733d77bf0aa7
equal deleted inserted replaced
2468:046303391dea 2469:e8760be772d5
    84 
    84 
    85     # import module according to uri type and get connector specific baseclass
    85     # import module according to uri type and get connector specific baseclass
    86     # first call to import the module, 
    86     # first call to import the module, 
    87     # then call with parameters to create the class
    87     # then call with parameters to create the class
    88     connector_specific_class = connectors[scheme]()(uri, confnodesroot)
    88     connector_specific_class = connectors[scheme]()(uri, confnodesroot)
       
    89     
       
    90     if connector_specific_class is None:
       
    91         return None
    89 
    92 
    90     # new class inheriting from generic and specific connector base classes
    93     # new class inheriting from generic and specific connector base classes
    91     return ClassType(_scheme + "_connector", 
    94     return ClassType(_scheme + "_connector", 
    92                      (ConnectorBase, connector_specific_class), {})()
    95                      (ConnectorBase, connector_specific_class), {})()
    93 
    96