def get_project_fullpage(self,request,sub_nav_action): dm_projects=ProjectService.get_projects_include_me(request,sub_nav_action) dm_products=ProjectService.get_products_include_me(request) left_nav_bar=self.get_project_left_bar(request, sub_nav_action) sub_nav_bar=self.get_project_sub_nav_bar(request,dm_projects,sub_nav_action,dm_products) project_list=self.get_project_list_page(request,dm_projects) pagefileds={'left_nav_bar':left_nav_bar,"sub_nav_bar":"","project_list":project_list} return self.get_page(pagefileds,'project/home_project_index.html',request)
def get_my_fortestings(request): my_project_ids = list() my_products = ProjectService.get_products_include_me(request).order_by('-id') for product in my_products: projects = ProjectService.get_projects_include_me(request, str(product.id)).order_by('-id') my_project_ids.extend([project.id for project in projects]) result = ForTestingService.get_projects_fortestings(my_project_ids) return result
def get_env_fullpage(self,request,sub_nav_action): dm_envs=ProjectService.get_projects_include_me(request,sub_nav_action) dm_products=ProjectService.get_products_include_me(request) # left_nav_bar=self.get_project_left_bar(request, sub_nav_action) # sub_nav_bar=self.get_project_sub_nav_bar(request,dm_projects,sub_nav_action,dm_products) list2=[i for i in range(6)] env_list=self.get_env_control(request,list2) pagefileds={'left_nav_bar':"","sub_nav_bar":"","web_appview":self.get_env_portal_webapp(env_list)} return self.get_page(pagefileds,ENVPortalPath.portal_index,request)
def all_my_tasks(request, filters, owner): my_project_ids = list() my_products = ProjectService.get_products_include_me(request).order_by( '-id') for product in my_products: projects = ProjectService.get_projects_include_me( request, str(product.id)).order_by('-id') my_project_ids.extend([project.id for project in projects]) result = TaskService.project_all_tasks(owner, my_project_ids, filters) return result
def get_dashboard_index(self, request, sub_nav_action): dm_envs = ProjectService.get_projects_include_me(request) dm_products = ProjectService.get_products_include_me(request) left_nav_bar = self.get_dashboard_left_bar(request, sub_nav_action) list2 = [i for i in range(60)] env_list = "" pagefileds = { 'left_nav_bar': left_nav_bar, "sub_nav_bar": "", "web_appview": self.get_dashboard_webapp(env_list) } return self.get_page(pagefileds, ENVDashBoardPath.dashboard_index, request)
def get_project_fullpage(self, request, sub_nav_action): dm_projects = ProjectService.get_projects_include_me(request) dm_products = ProjectService.get_products_include_me(request) # left_nav_bar=self.get_project_left_bar(request, sub_nav_action) # sub_nav_bar=self.get_project_sub_nav_bar(request,dm_projects,sub_nav_action,dm_products) project_list = self.get_project_list_page(request, dm_projects) pagefileds = { 'left_nav_bar': "", "sub_nav_bar": "", "project_list": project_list } return self.get_page(pagefileds, ProjectPortalPath.portal_index, request)