def _build_burst_export_dict(self, burst):
     """
     Compute needed export info and return dictionary
     """
     burst_info = BurstInformation(burst.to_dict()[1])
     workflows = dao.get_workflows_for_burst(burst.id)
     for workflow in workflows:
         # Get information for each workflow for this burst
         workflow_info = WorkflowInformation(workflow.to_dict()[1])
         wf_steps, view_steps = self._build_workflow_step_info(workflow)
         workflow_info.set_workflow_steps(wf_steps)
         workflow_info.set_view_steps(view_steps)
         burst_info.add_workflow(workflow_info)
     return burst_info.to_dict()
 def _build_burst_export_dict(self, burst, bursts_dict):
     """
     Compute needed info and add them to burst_dict for export.
     """
     burst_info = BurstInformation(burst.to_dict()[1])
     workflows = dao.get_workflows_for_burst(burst.id)
     for workflow in workflows:
         # Get information for each workflow for this burst
         workflow_info = WorkflowInformation(workflow.to_dict()[1])
         wf_steps, view_steps = self._build_workflow_step_info(workflow)
         workflow_info.set_workflow_steps(wf_steps)
         workflow_info.set_view_steps(view_steps)
         burst_info.add_workflow(workflow_info)
     # Save data in dictionary form so we can just save it as a json later on
     bursts_dict[burst.id] = burst_info.to_dict()
Example #3
0
 def _build_burst_export_dict(self, burst):
     """
     Compute needed export info and return dictionary
     """
     burst_info = BurstInformation(burst.to_dict()[1])
     workflows = dao.get_workflows_for_burst(burst.id)
     for workflow in workflows:
         # Get information for each workflow for this burst
         workflow_info = WorkflowInformation(workflow.to_dict()[1])
         wf_steps, view_steps = self._build_workflow_step_info(workflow)
         workflow_info.set_workflow_steps(wf_steps)
         workflow_info.set_view_steps(view_steps)
         burst_info.add_workflow(workflow_info)
     return burst_info.to_dict()
Example #4
0
 def _build_burst_export_dict(self, burst, bursts_dict):
     """
     Compute needed info and add them to burst_dict for export.
     """
     burst_info = BurstInformation(burst.to_dict()[1])
     workflows = dao.get_workflows_for_burst(burst.id)
     for workflow in workflows:
         # Get information for each workflow for this burst
         workflow_info = WorkflowInformation(workflow.to_dict()[1])
         wf_steps, view_steps = self._build_workflow_step_info(workflow)
         workflow_info.set_workflow_steps(wf_steps)
         workflow_info.set_view_steps(view_steps)
         burst_info.add_workflow(workflow_info)
     # Save data in dictionary form so we can just save it as a json later on
     bursts_dict[burst.id] = burst_info.to_dict()