2015-01-05 13:20:09 +00:00
|
|
|
from django.conf.urls import patterns, include, url
|
2015-03-14 09:54:17 +00:00
|
|
|
from jumpserver.api import view_splitter
|
|
|
|
from juser.views import *
|
2015-01-05 13:20:09 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns('juser.views',
|
|
|
|
# Examples:
|
|
|
|
# url(r'^$', 'jumpserver.views.home', name='home'),
|
|
|
|
# url(r'^blog/', include('blog.urls')),
|
|
|
|
|
2015-03-15 15:23:20 +00:00
|
|
|
(r'^dept_list/$', view_splitter, {'su': dept_list, 'adm': dept_list_adm}),
|
2015-03-02 10:27:48 +00:00
|
|
|
(r'^dept_add/$', 'dept_add'),
|
2015-03-03 10:42:06 +00:00
|
|
|
(r'^dept_del/$', 'dept_del'),
|
|
|
|
(r'^dept_detail/$', 'dept_detail'),
|
2015-03-04 10:20:03 +00:00
|
|
|
(r'^dept_del_ajax/$', 'dept_del_ajax'),
|
2015-03-03 14:44:00 +00:00
|
|
|
(r'^dept_edit/$', 'dept_edit'),
|
2015-03-19 15:57:08 +00:00
|
|
|
(r'^dept_user_ajax/$', 'dept_user_ajax'),
|
|
|
|
(r'^group_add/$', view_splitter, {'su': group_add, 'adm': group_add_adm}),
|
2015-03-15 15:23:20 +00:00
|
|
|
(r'^group_list/$', view_splitter, {'su': group_list, 'adm': group_list_adm}),
|
2015-01-24 05:20:52 +00:00
|
|
|
(r'^group_detail/$', 'group_detail'),
|
2015-03-19 15:57:08 +00:00
|
|
|
(r'^group_del/$', view_splitter, {'su': group_del, 'adm': group_del_adm}),
|
2015-03-04 10:20:03 +00:00
|
|
|
(r'^group_del_ajax/$', 'group_del_ajax'),
|
2015-03-16 14:38:42 +00:00
|
|
|
(r'^group_edit/$', view_splitter, {'su': group_edit, 'adm': group_edit_adm}),
|
2015-03-23 14:57:19 +00:00
|
|
|
(r'^user_add/$', view_splitter, {'su': user_add, 'adm': user_add_adm}),
|
2015-03-19 15:57:08 +00:00
|
|
|
(r'^user_list/$', view_splitter, {'su': user_list, 'adm': user_list_adm}),
|
2015-03-03 14:44:00 +00:00
|
|
|
(r'^user_detail/$', 'user_detail'),
|
|
|
|
(r'^user_del/$', 'user_del'),
|
2015-03-04 16:20:24 +00:00
|
|
|
(r'^user_del_ajax/$', 'user_del_ajax'),
|
2015-03-19 15:57:08 +00:00
|
|
|
(r'^user_edit/$', view_splitter, {'su': user_edit, 'adm': user_edit_adm}),
|
2015-02-28 15:22:52 +00:00
|
|
|
(r'^profile/$', 'profile'),
|
2015-04-01 14:54:10 +00:00
|
|
|
(r'^chg_info/$', 'chg_info'),
|
2015-03-30 13:31:02 +00:00
|
|
|
(r'^chg_role/$', 'chg_role'),
|
2015-04-08 09:32:56 +00:00
|
|
|
(r'^down_key/$', 'down_key'),
|
2015-01-05 13:20:09 +00:00
|
|
|
)
|