c6e987eded09cc45dba51bd5a0cf66ad83642a6d
2 # Copyright 2018 EveryUP Srl
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 from django
.conf
.urls
import url
18 from descriptorhandler
import views
21 url(r
'(?P<descriptor_type>\w+)/list$', views
.show_descriptors
, name
='list_descriptors'),
22 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)', views
.edit_descriptor
, name
='edit_descriptor'),
23 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/delete$', views
.delete_descriptor
, name
='delete_descriptor'),
24 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/clone', views
.clone_descriptor
, name
='clone_descriptor'),
25 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/action/(?P<action_name>[-\w]+)',views
.custom_action
,
26 name
='custom_action'),
27 url(r
'(?P<descriptor_type>\w+)/new$', views
.new_descriptor
, name
='new_descriptor'),
28 url(r
'composer$', views
.open_composer
, name
='open_composer'),
29 url(r
'availablenodes', views
.get_available_nodes
, name
='get_available_nodes'),