Exemplo n.º 1
0
def save_settings():
    if request.method == 'POST':
        projectname = request.json['project']
        project_settings = request.json['projectSettings']
        global_settings = request.json['globalSettings']
        result = {'result': 'ok', 'errors': []}
        settings_manager.save_settings(projectname, project_settings,
                                       global_settings)
        return json.dumps(result)
Exemplo n.º 2
0
def save_settings():
    if request.method == 'POST':
        projectname = request.json['project']
        project_settings = request.json['projectSettings']
        global_settings = request.json['globalSettings']
        result = {'result': 'ok', 'errors': []}
        settings_manager.save_settings(projectname, project_settings,
                                       global_settings)
        # re-read settings
        test_execution.settings = settings_manager.get_project_settings(
            root_path, projectname)
        return json.dumps(result)
Exemplo n.º 3
0
def save_settings():
    if request.method == 'POST':
        projectname = request.json['project']
        project_settings = request.json['projectSettings']
        global_settings = request.json['globalSettings']
        result = {
            'result': 'ok',
            'errors': []
        }
        settings_manager.save_settings(projectname, project_settings, global_settings)
        # re-read settings
        test_execution.settings = settings_manager.get_project_settings(root_path,
                                                                        projectname)
        return json.dumps(result)