summaryrefslogtreecommitdiffstats
path: root/src/workflow/views.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-05-22 17:35:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-05-22 17:35:52 +0000
commit2e353a7c9fdc1439bb5b0999a6bb67e27ed2d46b (patch)
tree88ee597da2644fbdea6187930622bde4db168eb5 /src/workflow/views.py
parent9fc3d1a8be7f01b69e45181e8e38cc1063b56c66 (diff)
parenta21c6044461097a8551efd7bbcae2cd4d466fb07 (diff)
Merge "Make steps possible to hide/show"
Diffstat (limited to 'src/workflow/views.py')
-rw-r--r--src/workflow/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/workflow/views.py b/src/workflow/views.py
index 6d59b1c..f2e37ef 100644
--- a/src/workflow/views.py
+++ b/src/workflow/views.py
@@ -54,7 +54,12 @@ def step_view(request):
# no manager found, redirect to "lost" page
return no_workflow(request)
if request.GET.get('step') is not None:
- manager.goto(int(request.GET.get('step')))
+ if request.GET.get('step') == 'next':
+ manager.go_next()
+ elif request.GET.get('step') == 'prev':
+ manager.go_prev()
+ else:
+ raise Exception("requested action for new step had malformed contents: " + request.GET.get('step'))
return manager.render(request)