aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/sw_bundle_workflow.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-05-22 10:13:03 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-05-22 13:34:13 -0400
commita21c6044461097a8551efd7bbcae2cd4d466fb07 (patch)
treee4150db2439f12a2fe8f06a1ea499327235af46d /src/workflow/sw_bundle_workflow.py
parent2fd2b83361813e0a8375d81729c86adcb2c6feda (diff)
Make steps possible to hide/show
Change-Id: Ice5036ea9801655032cb080537fbd471fb3fda3e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/workflow/sw_bundle_workflow.py')
-rw-r--r--src/workflow/sw_bundle_workflow.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/workflow/sw_bundle_workflow.py b/src/workflow/sw_bundle_workflow.py
index a6a7464..329b716 100644
--- a/src/workflow/sw_bundle_workflow.py
+++ b/src/workflow/sw_bundle_workflow.py
@@ -113,7 +113,7 @@ class Define_Software(WorkflowStep):
context['headnode'] = self.repo_get(self.repo.CONFIG_MODELS, {}).get("headnode_index", 1)
else:
context["error"] = "Please select a resource first"
- self.metastep.set_invalid("Step requires information that is not yet provided by previous step")
+ self.set_invalid("Step requires information that is not yet provided by previous step")
return context
@@ -152,7 +152,7 @@ class Define_Software(WorkflowStep):
})
if not has_headnode:
- self.metastep.set_invalid('Must have one "Headnode" per POD')
+ self.set_invalid('Must have one "Headnode" per POD')
return self.render(request)
self.repo_put(self.repo.CONFIG_MODELS, models)
@@ -160,9 +160,9 @@ class Define_Software(WorkflowStep):
confirm['configuration'] = {}
confirm['configuration']['hosts'] = confirm_hosts
self.repo_put(self.repo.CONFIRMATION, confirm)
- self.metastep.set_valid("Completed")
+ self.set_valid("Completed")
else:
- self.metastep.set_invalid("Please complete all fields")
+ self.set_invalid("Please complete all fields")
return self.render(request)
@@ -201,9 +201,9 @@ class Config_Software(WorkflowStep):
confirm['configuration']['name'] = form.cleaned_data['name']
confirm['configuration']['description'] = form.cleaned_data['description']
- self.metastep.set_valid("Complete")
+ self.set_valid("Complete")
else:
- self.metastep.set_invalid("Please correct the errors shown below")
+ self.set_invalid("Please correct the errors shown below")
self.repo_put(self.repo.CONFIG_MODELS, models)
self.repo_put(self.repo.CONFIRMATION, confirm)