def get_full_page(self,request,projectid,sub_nav_action):
     setting_page_worker=ProjectSettingsPageWorker(request)
     sub_leftnav=setting_page_worker.get_settings_sub_navbar(request,projectid,sub_nav_action)
     left_nav_bar=setting_page_worker.get_settings_left_bar(request,projectid,sub_nav_action)
     project_info=self.get_webhook_webpart(request,projectid,WebHook())
     pagefileds={'left_nav_bar':left_nav_bar,'sub_leftnav':sub_leftnav,'project_info':project_info}
     return self.get_full_page_with_header(request, pagefileds, projectid,'settings/index.html')
 def get_edit_page(self,request,projectid,webhook_id):
     setting_page_worker=ProjectSettingsPageWorker(request)
     sub_leftnav=setting_page_worker.get_settings_sub_navbar(request,projectid,"")
     left_nav_bar=setting_page_worker.get_settings_left_bar(request,projectid,"")
     dm_webhook=WebHook.objects.get(webhook_id)
     project_info=self.get_webhook_webpart(request, projectid,dm_webhook)
     pagefileds={'left_nav_bar':left_nav_bar,'sub_leftnav':sub_leftnav,'project_info':project_info}
     return self.get_full_page_with_header(request, pagefileds, projectid,'settings/index.html')      
Exemple #3
0
def get_member_add_dialog(request, projectid):
    result = False
    try:
        page_worker = ProjectSettingsPageWorker(request)
        result = page_worker.get_project_member_add_dialog(request, projectid)
    except Exception as ex:
        SimpleLogger.error(ex)
    return HttpResponse(result)
Exemple #4
0
def get_member_list(request, projectid):
    result = False
    try:
        page_worker = ProjectSettingsPageWorker(request)
        result = page_worker.get_project_member_list_controll(
            projectid, request.user)
    except Exception as ex:
        SimpleLogger.error(ex)
    return HttpResponse(result)
def get_create_dialog(request):
    ''' index page'''
    page_worker = ProjectSettingsPageWorker(request)
    return HttpResponse(page_worker.get_settings_create_dialog(request, None))
def member(request, projectid, sub_nav_action):
    ''' index page'''
    page_worker = ProjectSettingsPageWorker(request)
    return page_worker.get_full_page(request, projectid, sub_nav_action)