| 51 | self.configTool = jsonData.get("configTool", "") |
| 52 | |
| 53 | def createInstance(self, client): |
| 54 | if not self.moduleName or not self.serviceName or not self.guid: |
| 55 | return None |
| 56 | if not self.textServiceClass: # constructor is not yet imported |
| 57 | # import the module |
| 58 | mod = importlib.import_module(self.moduleName) |
| 59 | self.textServiceClass = getattr(mod, self.serviceName) |
| 60 | if not self.textServiceClass: |
| 61 | return None |
| 62 | return self.textServiceClass(client) # create a new instance for this text service |
| 63 | |
| 64 | |
| 65 | class TextServiceManager: |