From e0cb8c61ec5bbd08eecb5bf7a1ef1fddb9bb397e Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Fri, 27 Sep 2013 16:46:54 -0400 Subject: [PATCH] The tool shed does not have HDAs, so step annotations cannot be displayed in a workflow in the tool shed. --- lib/tool_shed/util/workflow_util.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/tool_shed/util/workflow_util.py b/lib/tool_shed/util/workflow_util.py index 2a5e5385f8e..73965146d86 100644 --- a/lib/tool_shed/util/workflow_util.py +++ b/lib/tool_shed/util/workflow_util.py @@ -389,13 +389,14 @@ def get_workflow_from_dict( trans, workflow_dict, tools_metadata, repository_id, workflow.has_errors = True # Stick this in the step temporarily. step.temp_input_connections = step_dict[ 'input_connections' ] - annotation = step_dict.get( 'annotation', '') - if annotation: - annotation = sanitize_html( annotation, 'utf-8', 'text/html' ) - new_step_annotation = trans.model.WorkflowStepAnnotationAssociation() - new_step_annotation.annotation = annotation - new_step_annotation.user = trans.user - step.annotations.append( new_step_annotation ) + if trans.webapp.name == 'galaxy': + annotation = step_dict.get( 'annotation', '') + if annotation: + annotation = sanitize_html( annotation, 'utf-8', 'text/html' ) + new_step_annotation = trans.model.WorkflowStepAnnotationAssociation() + new_step_annotation.annotation = annotation + new_step_annotation.user = trans.user + step.annotations.append( new_step_annotation ) # Unpack and add post-job actions. post_job_actions = step_dict.get( 'post_job_actions', {} ) for name, pja_dict in post_job_actions.items():