2015-01-21 15:22:21 +00:00
|
|
|
from django.conf.urls import patterns, include, url
|
2015-03-23 14:57:19 +00:00
|
|
|
from jperm.views import *
|
2015-01-21 15:22:21 +00:00
|
|
|
|
2015-01-24 06:46:35 +00:00
|
|
|
urlpatterns = patterns('jperm.views',
|
2015-01-21 15:22:21 +00:00
|
|
|
# Examples:
|
|
|
|
# url(r'^$', 'jumpserver.views.home', name='home'),
|
|
|
|
# url(r'^blog/', include('blog.urls')),
|
|
|
|
|
2015-03-23 14:57:19 +00:00
|
|
|
(r'^perm_edit/$', view_splitter, {'su': perm_edit, 'adm': perm_edit_adm}),
|
2015-03-11 09:59:15 +00:00
|
|
|
(r'^dept_perm_edit/$', 'dept_perm_edit'),
|
2015-03-23 14:57:19 +00:00
|
|
|
(r'^perm_list/$', view_splitter, {'su': perm_list, 'adm': perm_list_adm}),
|
2015-03-11 09:59:15 +00:00
|
|
|
(r'^dept_perm_list/$', 'dept_perm_list'),
|
2015-02-15 02:06:02 +00:00
|
|
|
(r'^perm_user_detail/$', 'perm_user_detail'),
|
2015-01-30 06:54:45 +00:00
|
|
|
(r'^perm_detail/$', 'perm_detail'),
|
|
|
|
(r'^perm_del/$', 'perm_del'),
|
2015-01-30 08:39:34 +00:00
|
|
|
(r'^perm_asset_detail/$', 'perm_asset_detail'),
|
2015-03-27 10:37:10 +00:00
|
|
|
(r'^sudo_list/$', view_splitter, {'su': sudo_list, 'adm': sudo_list_adm}),
|
2015-02-09 16:21:08 +00:00
|
|
|
(r'^sudo_del/$', 'sudo_del'),
|
2015-03-27 10:37:10 +00:00
|
|
|
(r'^sudo_edit/$', view_splitter, {'su': sudo_edit, 'adm': sudo_edit_adm}),
|
2015-03-25 10:45:55 +00:00
|
|
|
(r'^sudo_refresh/$', 'sudo_refresh'),
|
2015-02-09 16:21:08 +00:00
|
|
|
(r'^sudo_detail/$', 'sudo_detail'),
|
2015-03-27 10:37:10 +00:00
|
|
|
(r'^cmd_add/$', view_splitter, {'su': cmd_add, 'adm': cmd_add_adm}),
|
2015-02-09 00:40:54 +00:00
|
|
|
(r'^cmd_list/$', 'cmd_list'),
|
2015-02-10 13:52:59 +00:00
|
|
|
(r'^cmd_del/$', 'cmd_del'),
|
|
|
|
(r'^cmd_edit/$', 'cmd_edit'),
|
2015-04-09 03:27:36 +00:00
|
|
|
(r'^cmd_detail/$', 'cmd_detail'),
|
2015-03-26 10:42:52 +00:00
|
|
|
(r'^apply/$', 'perm_apply'),
|
2015-04-01 10:58:10 +00:00
|
|
|
(r'^apply_show/(\w+)/$', 'perm_apply_log'),
|
2015-04-02 10:32:43 +00:00
|
|
|
(r'^apply_exec/$', 'perm_apply_exec'),
|
2015-04-04 04:47:07 +00:00
|
|
|
(r'^apply_info/$', 'perm_apply_info'),
|
2015-04-11 04:52:00 +00:00
|
|
|
(r'^apply_del/$', 'perm_apply_del'),
|
2015-04-04 04:47:07 +00:00
|
|
|
(r'^apply_search/$', 'perm_apply_search'),
|
2015-01-21 15:22:21 +00:00
|
|
|
)
|