2012-05-15 10:59:16 +08:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2012-10-18 19:54:00 +08:00
|
|
|
from views import group_info, group_member_operations, group_add_admin, \
|
2012-10-22 17:50:09 +08:00
|
|
|
group_manage, msg_reply, msg_reply_new, group_recommend, \
|
2012-10-22 16:22:55 +08:00
|
|
|
create_group_repo, group_joinrequest, attention, group_message_remove, \
|
2013-03-07 12:05:30 +08:00
|
|
|
group_remove_admin, group_discus, group_wiki, group_wiki_create, \
|
|
|
|
group_wiki_page_new, group_wiki_page_edit
|
2012-05-15 10:59:16 +08:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2012-10-27 11:32:53 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/$', group_info, name='group_info'),
|
2013-03-04 20:23:59 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/discus/$', group_discus, name='group_discus'),
|
2013-03-05 11:56:51 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/wiki/$', group_wiki, name='group_wiki'),
|
2013-03-08 19:34:53 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/wiki/(?P<page_name>[^/]+)/$', group_wiki, name='group_wiki'),
|
2013-03-05 11:56:51 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/wiki_create/$', group_wiki_create, name='group_wiki_create'),
|
2013-03-07 12:05:30 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/wiki_page_new/$', group_wiki_page_new, name='group_wiki_page_new'),
|
|
|
|
url(r'^(?P<group_id>\d+)/wiki_page_edit/(?P<page_name>[^/]+)$', group_wiki_page_edit, name='group_wiki_page_edit'),
|
2012-06-25 14:57:14 +08:00
|
|
|
url(r'^reply/(?P<msg_id>[\d]+)/$', msg_reply, name='msg_reply'),
|
2012-06-27 16:39:49 +08:00
|
|
|
url(r'^reply/new/$', msg_reply_new, name='msg_reply_new'),
|
2012-10-22 17:50:09 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/manage/$', group_manage, name='group_members'),
|
2012-08-18 17:25:08 +08:00
|
|
|
url(r'^(?P<group_id>[\d]+)/create-repo/$', create_group_repo, name='create_group_repo'),
|
2012-05-22 21:42:29 +08:00
|
|
|
(r'^(?P<group_id>[\d]+)/member/(?P<user_name>[^/]+)/$', group_member_operations),
|
2012-10-18 10:57:02 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/msgdel/(?P<msg_id>\d+)/$', group_message_remove, name='group_message_remove'),
|
2012-10-18 19:54:00 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/admin/add/$', group_add_admin, name='group_add_admin'),
|
2012-10-22 16:22:55 +08:00
|
|
|
url(r'^(?P<group_id>\d+)/admin/remove/$', group_remove_admin, name='group_remove_admin'),
|
2012-08-10 21:16:55 +08:00
|
|
|
url(r'^recommend/$', group_recommend, name='group_recommend'),
|
2012-09-28 22:43:25 +08:00
|
|
|
url(r'^attention/$', attention, name='group_attention'),
|
2012-09-26 17:05:32 +08:00
|
|
|
url(r'^joinrequest/(?P<group_id>[\d]+)/$', group_joinrequest, name='group_joinrequest'),
|
2012-05-15 10:59:16 +08:00
|
|
|
)
|