# -*- coding: utf-8 -*-
# This file is part of Archivematica.
#
# Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Archivematica 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 Archivematica.  If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import

from django.conf.urls import url
from components.rights import views

namespace = "rights_transfer"
urlpatterns = [
    url(r"^$", views.transfer_rights_list, name="index"),
    url(r"^add/$", views.transfer_rights_edit, name="add"),
    url(r"^delete/(?P<id>\d+)/$", views.transfer_rights_delete),
    url(
        r"^grants/(?P<id>\d+)/delete/$",
        views.transfer_rights_grant_delete,
        name="grant_delete",
    ),
    url(
        r"^grants/(?P<id>\d+)/$", views.transfer_rights_grants_edit, name="grants_edit"
    ),
    url(r"^(?P<id>\d+)/$", views.transfer_rights_edit, name="edit"),
]

# -*- coding: utf-8 -*-
# This file is part of Archivematica.
#
# Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Archivematica 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 Archivematica.  If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import

from django.conf.urls import url
from components.rights import views

app_name = "rights_transfer"
urlpatterns = [
    url(r"^$", views.transfer_rights_list, name="index"),
    url(r"^add/$", views.transfer_rights_edit, name="add"),
    url(r"^delete/(?P<id>\d+)/$", views.transfer_rights_delete),
    url(
        r"^grants/(?P<id>\d+)/delete/$",
        views.transfer_rights_grant_delete,
        name="grant_delete",
    ),
    url(
        r"^grants/(?P<id>\d+)/$", views.transfer_rights_grants_edit, name="grants_edit"
    ),
    url(r"^(?P<id>\d+)/$", views.transfer_rights_edit, name="edit"),
]

Fix application namespace for transfer rights urls