@staticmethod
    def create_form(obj, form):
        if type(obj).__name__ == "dict":
            if "type" in obj.keys() and "title" in obj.keys():
                if obj['type'] == "group":
                    form.append('<fieldset><legend>{title}</legend>'.format(title=obj['title']))
                    form = RecipeForm.create_form(obj['content'], form)
                    form.append('</fieldset>')
                else:
                    form.append('<div class="form-group">')
                    label = '<label'
                    if obj['type'] != "boolean":
                        label += ' for="{id}"'.format(id=obj['key'])
                        label += '>{title}</label>'.format(title=obj['title'])
                    else:
                        label += '>'
                    form.append(label)

                    if obj.get('description', False):
                        form.append('<p class="help-block">{description}</p>'.format(description=obj['description']))
                    form.append(RecipeForm.display_input(input_type=obj['type'],
                                                         key=obj.get('key', None),
                                                         required=obj.get('required', None),
                                                         values=obj.get('values', None),
                                                         default_value=obj.get('default_value', None),
                                                         saved_value=None))
                    if obj['type'] == "boolean":
                        form.append(' {title}</label>'.format(title=obj['title']))
                    form.append('</div>')
            else:
                for key, value in obj.items():
                    if type(value).__name__ in ("dict", "list"):
                        form = RecipeForm.create_form(value, form)
        else:
            for value in obj:
                if type(value).__name__ in ("dict", "list"):
                    form = RecipeForm.create_form(value, form)
        return form
Load a TLS context factory for the AMP client from the path where
dataset/ETHPy150Open OpenMDM/OpenMDM/public_gate/models.py/RecipeForm.create_form--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/script.py/_context_factory_and_credential