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 jumpserver.api import view_splitter
|
|
|
|
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-02-06 16:07:07 +00:00
|
|
|
(r'^sudo_list/$', 'sudo_list'),
|
2015-03-23 14:57:19 +00:00
|
|
|
(r'^sudo_add/$', view_splitter, {'su': sudo_add, 'adm': sudo_add_adm}),
|
2015-02-09 16:21:08 +00:00
|
|
|
(r'^sudo_del/$', 'sudo_del'),
|
|
|
|
(r'^sudo_edit/$', 'sudo_edit'),
|
|
|
|
(r'^sudo_detail/$', 'sudo_detail'),
|
2015-02-09 00:40:54 +00:00
|
|
|
(r'^cmd_add/$', 'cmd_add'),
|
|
|
|
(r'^cmd_list/$', 'cmd_list'),
|
2015-02-10 13:52:59 +00:00
|
|
|
(r'^cmd_del/$', 'cmd_del'),
|
|
|
|
(r'^cmd_edit/$', 'cmd_edit'),
|
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-01-21 15:22:21 +00:00
|
|
|
)
|