Beispiel #1
0
 def generate_report_json(self,
                          trans,
                          invocation,
                          runtime_report_config_json=None):
     """
     """
     workflow_manager = workflows.WorkflowsManager(trans.app)
     workflow_encoded_id = trans.app.security.encode_id(
         invocation.workflow_id)
     workflow = workflow_manager.get_stored_accessible_workflow(
         trans, workflow_encoded_id, by_stored_id=False)
     internal_markdown = self._generate_internal_markdown(
         trans,
         invocation,
         runtime_report_config_json=runtime_report_config_json)
     export_markdown, extra_rendering_data = ready_galaxy_markdown_for_export(
         trans, internal_markdown)
     rval = {
         "render_format":
         "markdown",  # Presumably the frontend could render things other ways.
         "markdown": export_markdown,
         "invocation_markdown": export_markdown,
         "model_class": "Report",
         "id": trans.app.security.encode_id(invocation.workflow_id),
         "username": trans.user.username,
         "title": workflow.name,
     }
     rval.update(extra_rendering_data)
     return rval
Beispiel #2
0
 def __init__(self, app):
     super(HistoriesController, self).__init__(app)
     self.citations_manager = citations.CitationsManager(app)
     self.user_manager = users.UserManager(app)
     self.workflow_manager = workflows.WorkflowsManager(app)
     self.manager = histories.HistoryManager(app)
     self.serializer = histories.HistorySerializer(app)
     self.deserializer = histories.HistoryDeserializer(app)
     self.filters = histories.HistoryFilters(app)
Beispiel #3
0
 def __init__(self, app):
     super().__init__(app)
     self.citations_manager = citations.CitationsManager(app)
     self.user_manager = users.UserManager(app)
     self.workflow_manager = workflows.WorkflowsManager(app)
     self.manager = histories.HistoryManager(app)
     self.history_export_view = histories.HistoryExportView(app)
     self.serializer = histories.HistorySerializer(app)
     self.deserializer = histories.HistoryDeserializer(app)
     self.filters = histories.HistoryFilters(app)
Beispiel #4
0
 def __init__(self, app):
     super(WorkflowsAPIController, self).__init__(app)
     self.history_manager = histories.HistoryManager(app)
     self.workflow_manager = workflows.WorkflowsManager(app)
     self.workflow_contents_manager = workflows.WorkflowContentsManager()