1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/576e78ba4141/ changeset: 576e78ba4141 user: jgoecks date: 2011-06-08 21:16:20 summary: Include post-job actions when importing and exporting workflows. Fixes #518 affected #: 1 file (926 bytes) --- a/lib/galaxy/web/controllers/workflow.py Wed Jun 08 14:41:45 2011 -0400 +++ b/lib/galaxy/web/controllers/workflow.py Wed Jun 08 15:16:20 2011 -0400 @@ -1592,6 +1592,15 @@ 'annotation' : annotation_str } + # Add post-job actions to step dict. + if module.type == 'tool': + pja_dict = {} + for pja in step.post_job_actions: + pja_dict[pja.action_type+pja.output_name] = dict( action_type = pja.action_type, + output_name = pja.output_name, + action_arguments = pja.action_arguments ) + step_dict[ 'post_job_actions' ] = pja_dict + # Data inputs step_dict['inputs'] = [] if module.type == "data_input": @@ -1695,6 +1704,12 @@ if annotation: annotation = sanitize_html( annotation, 'utf-8', 'text/html' ) self.add_item_annotation( trans.sa_session, trans.get_user(), 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(): + pja = PostJobAction( pja_dict[ 'action_type' ], + step, pja_dict[ 'output_name' ], + pja_dict[ 'action_arguments' ] ) # Second pass to deal with connections between steps for step in steps: # Input connections Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.