aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/workflow/urls.py')
-rw-r--r--src/workflow/urls.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/workflow/urls.py b/src/workflow/urls.py
index 5a97904..b1b95a7 100644
--- a/src/workflow/urls.py
+++ b/src/workflow/urls.py
@@ -9,26 +9,15 @@
from django.conf.urls import url
-from django.conf import settings
-from workflow.views import step_view, delete_session, manager_view, viewport_view
-from workflow.models import Repository
-from workflow.resource_bundle_workflow import Define_Hardware, Define_Nets, Resource_Meta_Info
-from workflow.booking_workflow import SWConfig_Select, Booking_Resource_Select, Booking_Meta
+from workflow.views import manager_view, viewport_view, add_workflow, remove_workflow, create_workflow
app_name = 'workflow'
urlpatterns = [
- url(r'^workflow/$', step_view, name='workflow'),
- url(r'^workflow/finish/$', delete_session, name='delete_session'),
url(r'^manager/$', manager_view, name='manager'),
+ url(r'^add/$', add_workflow, name='add_workflow'),
+ url(r'^create/$', create_workflow, name='create_workflow'),
+ url(r'^pop/$', remove_workflow, name='remove_workflow'),
url(r'^$', viewport_view, name='viewport')
]
-
-if settings.TESTING:
- urlpatterns.append(url(r'^workflow/step/define_hardware$', Define_Hardware("", Repository()).test_render))
- urlpatterns.append(url(r'^workflow/step/define_net$', Define_Nets("", Repository()).test_render))
- urlpatterns.append(url(r'^workflow/step/resource_meta$', Resource_Meta_Info("", Repository()).test_render))
- urlpatterns.append(url(r'^workflow/step/booking_meta$', Booking_Meta("", Repository()).test_render))
- urlpatterns.append(url(r'^workflow/step/software_select$', SWConfig_Select("", Repository()).test_render))
- urlpatterns.append(url(r'^workflow/step/resource_select$', Booking_Resource_Select("", Repository()).test_render))