summaryrefslogtreecommitdiff
path: root/ishtar_common/urls.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-01 15:50:52 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 09:57:24 +0200
commit572b9047260322ed19cc9f674657b8be8d62c052 (patch)
tree0ed9392291c50980c7dbff14c9a05edc601076de /ishtar_common/urls.py
parent66a376e081e335cf94ecf6fd41e5fe13a5445c57 (diff)
downloadIshtar-572b9047260322ed19cc9f674657b8be8d62c052.tar.bz2
Ishtar-572b9047260322ed19cc9f674657b8be8d62c052.zip
Adapt forms, wizards, views, urls for new management of documents (refs #4107)
Diffstat (limited to 'ishtar_common/urls.py')
-rw-r--r--ishtar_common/urls.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py
index 5a3ed217d..a64e6ab24 100644
--- a/ishtar_common/urls.py
+++ b/ishtar_common/urls.py
@@ -225,6 +225,34 @@ urlpatterns += [
name='show-shortcut-menu'),
url(r'(?P<action_slug>' + actions + r')/$', views.action, name='action'),
]
+"""
+ url(r'operation_source_search/(?P<step>.+)?$',
+ check_rights(['view_operation', 'view_own_operation'])(
+ views.operation_source_search_wizard),
+ name='operation_source_search'),
+ url(r'operation_source_creation/(?P<step>.+)?$',
+ check_rights(['change_operation', 'change_own_operation'])(
+ views.operation_source_creation_wizard),
+ name='operation_source_creation'),
+ url(r'operation_source_modification/(?P<step>.+)?$',
+ check_rights(['change_operation', 'change_own_operation'])(
+ views.operation_source_modification_wizard),
+ name='operation_source_modification'),
+ url(r'operation_source_modify/(?P<pk>.+)/$',
+ views.operation_source_modify, name='operation_source_modify'),
+ url(r'operation_source_deletion/(?P<step>.+)?$',
+ check_rights(['change_operation', 'change_own_operation'])(
+ views.operation_source_deletion_wizard),
+ name='operation_source_deletion'),
+
+ url(r'show-operationsource(?:/(?P<pk>.+))?/(?P<type>.+)?$',
+ views.show_operationsource, name=models.OperationSource.SHOW_URL),
+ url(r'get-operationsource/(?P<type>.+)?$',
+ views.get_operationsource, name='get-operationsource'),
+ url(r'get-operationsource-full/(?P<type>.+)?$',
+ views.get_operationsource, name='get-operationsource-full',
+ kwargs={'full': True}),
+"""
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL,