from django.conf.urls.defaults import * from views import * from seahub.views import repo, repo_history urlpatterns = patterns('', url(r'^create/$', create_org, name='create_org'), url(r'^messages/$', org_msg, name='org_msg'), url(r'^(?P[^/]+)/$', org_info, name='org_info'), url(r'^(?P[^/]+)/personal/$', org_personal, name='org_personal'), url(r'^(?P[^/]+)/repo/create/$', org_repo_create, name='org_repo_create'), url(r'^(?P[^/]+)/innerpubrepo/create/$', org_inner_pub_repo_create, name='org_inner_pub_repo_create'), url(r'^(?P[^/]+)/groups/$', org_groups, name='org_groups'), url(r'^([^/]+)/repo/create/$', org_repo_create, name='org_repo_create'), url(r'^([^/]+)/repo/history/(?P[^/]+)/$', repo_history, name='org_repo_history'), url(r'^(?P[^/]+)/repo/share/$', org_repo_share, name='org_repo_share'), url(r'^([^/]+)/repo/(?P[^/]+)/$', repo, name='repo'), ### Org admin ### url(r'^(?P[^/]+)/seafadmin/$', org_seafadmin, name='org_seafadmin'), url(r'^(?P[^/]+)/useradmin/$', org_useradmin, name='org_useradmin'), url(r'^(?P[^/]+)/useradmin/remove/(?P[^/]+)/$', org_user_remove, name='org_user_remove'), url(r'^(?P[^/]+)/groupadmin/$', org_group_admin, name='org_groupadmin'), url(r'^(?P[^/]+)/group/remove/(?P[\d]+)/$', org_group_remove, name='org_group_remove'), )