(bundle_id: str, plugin_schema_id: str)
| 11 | |
| 12 | |
| 13 | def __load_plugin_handler_class(bundle_id: str, plugin_schema_id: str): |
| 14 | # Generate the model class name based on bundle_id |
| 15 | class_name = "".join(word.title() for word in plugin_schema_id.split("_")) |
| 16 | |
| 17 | # Import the corresponding module |
| 18 | module = importlib.import_module(f"bundles.{bundle_id}.plugins.{plugin_schema_id}.plugin") |
| 19 | |
| 20 | # Return the class from the module |
| 21 | return getattr(module, class_name) |
| 22 | |
| 23 | |
| 24 | def get_plugin_handler(bundle_id: str, plugin_id: str): |
no outgoing calls
no test coverage detected