2016-12-05 15:02:08 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
|
|
from django.conf.urls import url
|
|
|
|
from ops import views as page_view
|
|
|
|
|
2016-12-11 04:05:11 +00:00
|
|
|
__all__ = ["urlpatterns"]
|
2016-12-05 15:02:08 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# Resource Sudo url
|
|
|
|
url(r'^sudo/list$', page_view.SudoListView.as_view(), name='page-sudo-list'),
|
|
|
|
url(r'^sudo/create$', page_view.SudoCreateView.as_view(), name='page-sudo-create'),
|
2016-12-13 16:06:16 +00:00
|
|
|
url(r'^sudo/(?P<pk>[0-9]+)/detail$', page_view.SudoDetailView.as_view(), name='page-sudo-detail'),
|
|
|
|
url(r'^sudo/(?P<pk>[0-9]+)/update$', page_view.SudoUpdateView.as_view(), name='page-sudo-update'),
|
2016-12-05 15:02:08 +00:00
|
|
|
|
|
|
|
# Resource Cron url
|
|
|
|
url(r'^cron/list$', page_view.CronListView.as_view(), name='page-cron-list'),
|
|
|
|
url(r'^cron/create$', page_view.CronCreateView.as_view(), name='page-cron-create'),
|
2016-12-13 16:06:16 +00:00
|
|
|
url(r'^cron/(?P<pk>[0-9]+)/detail$', page_view.CronDetailView.as_view(), name='page-cron-detail'),
|
|
|
|
url(r'^cron/(?P<pk>[0-9]+)/update$', page_view.CronUpdateView.as_view(), name='page-cron-update'),
|
2016-12-19 06:07:21 +00:00
|
|
|
|
|
|
|
# TResource Task url
|
|
|
|
url(r'^task/list$', page_view.TaskListView.as_view(), name='page-task-list'),
|
|
|
|
url(r'^task/create$', page_view.TaskCreateView.as_view(), name='page-task-create'),
|
|
|
|
url(r'^task/(?P<pk>[0-9]+)/detail$', page_view.TaskDetailView.as_view(), name='page-task-detail'),
|
|
|
|
url(r'^task/(?P<pk>[0-9]+)/update$', page_view.TaskUpdateView.as_view(), name='page-task-update'),
|
2016-12-05 15:02:08 +00:00
|
|
|
]
|