def __init__(self, request): ''' Constructor ''' CITaskPageWorker.__init__(self, request) self.pagemodel = CITestingLeftNavBar self.subpage_model = CITestingTaskSubNavBar self.task_property_model = CITestingTaskPropertyNavBar
def search_task(request): result="" try: page_worker=CITaskPageWorker(request) result=page_worker.search_tasks(request) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def get_task_parameter_group_list(request,task_id): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) result=page_worker.get_ci_task_parameter_list(task_id) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def more_changelog_list(request,task_id): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) result=page_worker.task_more_changelog_list(request, task_id) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def more_dashboard_task_list(request): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) result=page_worker.dashboard_more_task_list(request) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def download_package_list(request,history_id): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) result=page_worker.get_downlaod_package_list(history_id) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def task_config_basic(request,task_id): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) result=page_worker.get_ci_task_config_basic(request,task_id) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def edit(request): ''' show task parameter edit webpart ''' result="" try: page_worker=CITaskPageWorker(request) parameter_id=request.POST.get("parameter_id") result=page_worker.get_ci_task_parameter_edit(parameter_id) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def get_task_list(request): ''' index page''' result="" try: page_worker=CITaskPageWorker(request) task_id=request.POST.get("task_id") ci_task=CITask.objects.get(int(task_id)) sub_nav_action=request.POST.get("sub_nav_action") dm_ci_tasks=CITaskService.get_product_ci_tasks(request, ci_task.TaskType, sub_nav_action) result=page_worker.get_ci_task_list_controll(request,dm_ci_tasks,True) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def get_dashboard_fullpage(self, request): task_pageworker = CITaskPageWorker(request) left_nav_bar = self.get_dashboard_left_bar(request) dashboard_task_queue = self.get_dashboard_task_queue_webpart(request) dashboard_task_list = task_pageworker.get_dashboard_task_list_webpart( request) dashboard_agent = self.get_dashboard_agent_list_webpart(request) pagefileds = { "left_nav_bar": left_nav_bar, "dashboard_task_queue": dashboard_task_queue, "dashboard_task_list": dashboard_task_list, "dashboard_agent": dashboard_agent } return self.get_page(pagefileds, 'dashboard/ci_dashboard_index.html', request)
def confirm_dialog(request): result="" try: page_worker=CITaskPageWorker(request) result=page_worker.task_parameter_confirm_dialog(request) except Exception as ex: SimpleLogger.exception(ex) return HttpResponse(result)
def confirm_dialog(request): ''' index page''' page_worker=CITaskPageWorker(request) return HttpResponse(page_worker.get_ci_task_confirm_dialog())
def changelog_detail(request, history_id, change_version): page_worker = CITaskPageWorker(request) result = page_worker.task_changelog_detail(history_id, change_version) return HttpResponse(result)