File size: 568 Bytes
a8b3f00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from extensions.ext_code_based_extension import code_based_extension


class CodeBasedExtensionService:
    @staticmethod
    def get_code_based_extension(module: str) -> list[dict]:
        module_extensions = code_based_extension.module_extensions(module)
        return [
            {
                "name": module_extension.name,
                "label": module_extension.label,
                "form_schema": module_extension.form_schema,
            }
            for module_extension in module_extensions
            if not module_extension.builtin
        ]