equal
deleted
inserted
replaced
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 |