Esempio n. 1
0
from apps.project.handlers import *
from dtlib import filetool

app_path = filetool.get_parent_folder_name(__file__)  # set the relative path in one place

url = [

    (r"/%s/create-test-project/" % app_path, CreateTestProject),  # 创建项目
    (r"/%s/update-test-project/" % app_path, UpdateTestProject),  # 更新项目
    (r"/%s/delete-test-project/" % app_path, DeleteTestProject),  # 删除项目
    (r"/%s/list-projects/" % app_path, ListProjects),  # 本组织的所有项目

    (r"/%s/xtest-client-config/" % app_path, ListProjectsNote),  # 根据project——id查找app-id

    (r"/%s/read-projects-record/" % app_path, ReadProjectsRecord),  # 根据project—id查找30次的构建情况

]
Esempio n. 2
0
# coding:utf-8
"""
websocket相关接口
"""

from apps.dashboard.handlers import UpdateContent, GetContent, DeleteContent, UpdateProjectShow
from dtlib import filetool

app_path = filetool.get_parent_folder_name(__file__)

url = [
    (r"/%s/update_content/" % app_path, UpdateContent),  # 更新项目信息
    (r"/%s/delete_content/" % app_path, DeleteContent),  # 删除项目信息
    (r"/%s/get_content/" % app_path, GetContent),  # 获取项目信息
    (r"/%s/update_project_show/" % app_path, UpdateProjectShow),  # 更新展示状态
]