Source code for geonode.groups.urls

#
#
# Copyright (C) 2017 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#

from django.conf.urls import url
from django.views.generic import TemplateView

from .views import GroupDetailView, GroupActivityView, SetGroupDatasetPermission
from . import views

[docs] urlpatterns = [ # 'geonode.groups.views', url(r"^$", TemplateView.as_view(template_name="groups/group_list.html"), name="group_list"), url(r"^categories/$", TemplateView.as_view(template_name="groups/category_list.html"), name="group_category_list"), url(r"^categories/_create/$", views.group_category_create, name="group_category_create"), url(r"^categories/(?P<slug>[-\w]+)/$", views.group_category_detail, name="group_category_detail"), url(r"^categories/(?P<slug>[-\w]+)/update/$", views.group_category_update, name="group_category_update"), url(r"^create/$", views.group_create, name="group_create"), url(r"^group/(?P<slug>[-\w]+)/$", GroupDetailView.as_view(), name="group_detail"), url(r"^group/(?P<slug>[-\w]+)/update/$", views.group_update, name="group_update"), url(r"^group/(?P<slug>[-\w]+)/members/$", views.group_members, name="group_members"), url(r"^group/(?P<slug>[-\w]+)/members_add/$", views.group_members_add, name="group_members_add"), url( r"^group/(?P<slug>[-\w]+)/member_remove/(?P<username>.+)$", views.group_member_remove, name="group_member_remove", ), url( r"^group/(?P<slug>[-\w]+)/member_promote/(?P<username>.+)$", views.group_member_promote, name="group_member_promote", ), url( r"^group/(?P<slug>[-\w]+)/member_demote/(?P<username>.+)$", views.group_member_demote, name="group_member_demote", ), url(r"^group/(?P<slug>[-\w]+)/remove/$", views.group_remove, name="group_remove"), url(r"^group/(?P<slug>[-\w]+)/join/$", views.group_join, name="group_join"), url(r"^group/(?P<slug>[-\w]+)/activity/$", GroupActivityView.as_view(), name="group_activity"), url(r"^autocomplete/$", views.GroupProfileAutocomplete.as_view(), name="autocomplete_groups"), url(r"^autocomplete_category/$", views.GroupCategoryAutocomplete.as_view(), name="autocomplete_category"), url(r"^dataset/permission/$", SetGroupDatasetPermission.as_view(), name="set_group_dataset_permissions"), ]