#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import course_list, course_edit, CourseDTView, reset_status, course_copy course_urls = [ url(r'^course_list/$', perm_required(['course.can_view'])(course_list), name='course_list'), url(r'^datatable/$', CourseDTView.as_view(), name='datatable'), url(r'^course_list/course_create/$', perm_required(['course.can_create'])(course_edit), name='course_create'), url(r'^course_list/course_modify/(\d+)/$', perm_required(['course.can_modify'])(course_edit), name='course_modify'), url(r'^reset_status/$', reset_status, name='reset_status'), url(r'^course_copy/$', course_copy, name='course_copy'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import operationlog_list, OperationLogDTView operationlog_urls = [ url(r'^operationlog_list/$', perm_required(['opreationlog.can_view'])(operationlog_list), name='operationlog_list'), url(r'^datatable/$', OperationLogDTView.as_view(), name='datatable'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import score_list, score_edit, ScoreDTView, timbre_choices_v, \ music_office_choices_v, qnyd_score_edit, reset_status, segment_choices, all_choices_v, \ hzq_office_choices_v, score_copy, score_delete score_urls = [ url(r'^score_list/$', perm_required(['score.can_view'])(score_list), name='score_list'), url(r'^datatable/$', ScoreDTView.as_view(), name='datatable'), url(r'^score_list/score_create/$', perm_required(['score.can_create'])(score_edit), name='score_create'), url(r'^score_list/score_modify/(\d+)/$', perm_required(['score.can_modify'])(score_edit), name='score_modify'), url(r'^score_list/qnyd_score_create/$', qnyd_score_edit, name='qnyd_score_create'), url(r'^score_list/qnyd_score_modify/(\d+)/$', qnyd_score_edit, name='qnyd_score_modify'), url(r'^timbre_choices/$', timbre_choices_v, name='timbre_choices'), url(r'^reset_status/$', reset_status, name='reset_status'), url(r'^score_delete/$', score_delete, name='score_delete'), url(r'^score_copy/$', score_copy, name='score_copy'), url(r'^music_office_choices/$', music_office_choices_v,
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import video_list, video_edit, VideoDTView, reset_status, video_choices, segment_choices, video_delete video_urls = [ url(r'^video_list/$', perm_required(['video.can_view'])(video_list), name='video_list'), url(r'^datatable/$', VideoDTView.as_view(), name='datatable'), url(r'^video_list/video_create/$', perm_required(['video.can_create'])(video_edit), name='video_create'), url(r'^video_list/video_modify/(\d+)/$', perm_required(['video.can_modify'])(video_edit), name='video_modify'), url(r'^reset_status/$', reset_status, name='reset_status'), url(r'^video_delete/$', video_delete, name='video_delete'), url(r'^choices/$', video_choices, name='choices'), url(r'^segment_choices/$', segment_choices, name='segment_choices'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import score_enjoy_modify, score_enjoy_list, ScoreEnjoyDTView, score_enjoy_manage_list, \ ScoreEnjoyManageDTView, score_enjoy_manage_modify, score_enjoy_office_choices_v score_enjoy_urls = [ url(r'^score_enjoy_list/$', perm_required(['score_optional.can_view'])(score_enjoy_list), name='score_enjoy_list'), url(r'^datatable/$', ScoreEnjoyDTView.as_view(), name='datatable'), url(r'^score_enjoy_modify/$', perm_required(['score_optional.can_modify'])(score_enjoy_modify), name='score_enjoy_modify'), url(r'^score_enjoy_office_choices/$', score_enjoy_office_choices_v, name='score_enjoy_office_choices'), url(r'^score_enjoy_manage_list/$', perm_required(['score_optional.can_view'])(score_enjoy_manage_list), name='score_enjoy_manage_list'), url(r'^manage_datatable/$', ScoreEnjoyManageDTView.as_view(), name='mange_datatable'), url(r'^score_enjoy_manage_modify/(\d+)/$', perm_required(['score_optional.can_modify' ])(score_enjoy_manage_modify), name='score_enjoy_manage_modify'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import student_edit, student_list, StudentDTView, class_choices, class_move student_urls = [ url(r'^student_list/$', perm_required(['student.can_view'])(student_list), name='student_list'), url(r'^datatable/$', StudentDTView.as_view(), name='datatable'), url(r'^student_list/student_modify/(\d+)/$', perm_required(['student.can_modify'])(student_edit), name='student_modify'), url(r'^class_choices/$', class_choices, name='class_choices'), url(r'^class_move/$', class_move, name='class_move'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import section_list, unit_list, unit_edit, UnitDTView, reset_status, SectionDTView, section_edit, \ game_choices, delete_section, set_status, section_copy, unit_copy, choices unit_urls = [ url(r'^unit_list/$', perm_required(['unit.can_view'])(unit_list), name='unit_list'), url(r'^datatable/$', UnitDTView.as_view(), name='datatable'), url(r'^unit_list/unit_create/$', perm_required(['unit.can_create'])(unit_edit), name='unit_create'), url(r'^unit_list/unit_modify/(\d+)/$', perm_required(['unit.can_modify'])(unit_edit), name='unit_modify'), url(r'^reset_status/$', reset_status, name='reset_status'), url(r'^unit_list/section_list/(\d+)/$', section_list, name='section_list'), url(r'^section_datatable/$', SectionDTView.as_view(), name='section_datatable'), url(r'^unit_list/section_list/section_create/(?P<unit_id>(\d)+)/(?P<type>(\d))/$', section_edit, name='section_create'), url(r'^unit_list/section_list/section_modify/(?P<unit_id>(\d)+)/(?P<type>(\d))/(?P<section_id>(\d)+)/$', section_edit, name='section_modify'), url(r'^game_choices/$', game_choices, name='game_choices'), url(r'^set_status/$', set_status, name='set_status'),
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import teacherversion_list, teacherversion_edit, TeacherVersionDTView, reset_status teacherversion_urls = [ url(r'^teacherversion_list/$', perm_required(['teacherversion.can_view'])(teacherversion_list), name='teacherversion_list'), url(r'^datatable/$', TeacherVersionDTView.as_view(), name='datatable'), url(r'^teacherversion_list/teacherversion_create/$', perm_required(['teacherversion.can_create'])(teacherversion_edit), name='teacherversion_create'), url(r'^teacherversion_list/teacherversion_modify/(\d+)/$', perm_required(['teacherversion.can_modify'])(teacherversion_edit), name='teacherversion_modify'), url(r'^reset_status/$', reset_status, name='reset_status'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import score_optional_edit, score_optional_list, ScoreOptionalDTView score_optional_urls = [ url(r'^score_optional_list/$', perm_required(['score_optional.can_view'])(score_optional_list), name='score_optional_list'), url(r'^datatable/$', ScoreOptionalDTView.as_view(), name='datatable'), url(r'^score_optional_list/score_optional_modify/(\d+)/$', perm_required(['score_optional.can_modify'])(score_optional_edit), name='score_optional_modify'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import teacher_list, teacher_edit, TeacherDTView, get_teacher_by_mobile, course_system_choices_v teacher_urls = [ url(r'^teacher_list/$', perm_required(['teacher.can_view'])(teacher_list), name='teacher_list'), url(r'^datatable/$', TeacherDTView.as_view(), name='datatable'), url(r'^get_teacher_name', get_teacher_by_mobile, name='teacher_name'), url(r'^teacher_list/teacher_create/$', perm_required(['teacher.can_create'])(teacher_edit), name='teacher_create'), url(r'^teacher_list/teacher_modify/(\d+)/$', perm_required(['teacher.can_modify'])(teacher_edit), name='teacher_modify'), url(r'^course_system_choices/$', course_system_choices_v, name='course_system_choices'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import class_edit, class_list, ClassDTView, remove_student, add_student, student_list, StudentDTView, teacher_choices_v, course_system_choices_v class_urls = [ url(r'^class_list/$', perm_required(['class.can_view'])(class_list), name='class_list'), url(r'^datatable/$', ClassDTView.as_view(), name='datatable'), url(r'^student/datatable/$', StudentDTView.as_view(), name='student_datatable'), url(r'^add_student/$', add_student, name='add_student'), url(r'^class_list/student_list/(\d+)/$', student_list, name='student_list'), url(r'^course_system_choices/$', course_system_choices_v, name='course_system_choices'), url(r'^teacher_choices/$', teacher_choices_v, name='teacher_choices'), url(r'^class_list/class_create/$', perm_required(['class.can_modify'])(class_edit), name='class_create'), url(r'^remove_student/$', remove_student, name='remove_student'), url(r'^class_list/class_modify/(\d+)/$', perm_required(['class.can_modify'])(class_edit), name='class_modify'), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from backend.accounts.perms import perm_required from .views import institution_list, institution_edit, InstitutionDTView, province_choices_v, \ city_choices_v, course_system_choices_v, ManagerDTView, institution_admin_list, admin_edit, \ reset_status, reset_teacher_status, reset_password, student_list, StudentDTView institution_urls = [ url(r'^institution_list/$', perm_required(['institution.can_view'])(institution_list), name='institution_list'), url(r'^expreiment_list/$', perm_required(['expreiment_student.can_view'])(student_list), name='student_list'), url(r'^datatable/$', InstitutionDTView.as_view(), name='datatable'), url(r'^experience_student/datatable/$', StudentDTView.as_view(), name='student_datatable'), url(r'^institution_list/institution_create/$', perm_required(['institution.can_create'])(institution_edit), name='institution_create'), url(r'^institution_list/institution_modify/(\d+)/$', perm_required(['institution.can_modify'])(institution_edit), name='institution_modify'), url(r'^province_choices/$', province_choices_v, name='province_choices'), url(r'^city_choices/$', city_choices_v, name='city_choices'), url(r'^course_system_choices/$', course_system_choices_v, name='course_system_choices'),