Enis Afgan committed 55e7d70

Fix workflow API imports

Comments (0)

Files changed (1)


 from sqlalchemy import desc
 from galaxy import util
 from galaxy import web
-from import visit_input_values, DataToolParameter
+from galaxy import model
+from import visit_input_values, DataToolParameter, RuntimeValue
 from galaxy.web.base.controller import BaseAPIController, url_for
-from galaxy.workflow.modules import module_factory
+from galaxy.workflow.modules import module_factory, ToolModule
 from import ActionBox
 from galaxy.model.item_attrs import UsesAnnotations
     def _workflow_from_dict( self, trans, data, source=None ):
-        RPARK: copied from
+        RPARK: copied from
         Creates a workflow from a dict. Created workflow is stored in the database and returned.
         # Put parameters in workflow mode
             # Stick this in the step temporarily
             step.temp_input_connections = step_dict['input_connections']
             # Save step annotation.
-            annotation = step_dict[ 'annotation' ]
+            #annotation = step_dict[ 'annotation' ]
             #if annotation:
                 #annotation = sanitize_html( annotation, 'utf-8', 'text/html' )
                 # ------------------------------------------ #
             # 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' ],
+                model.PostJobAction( pja_dict[ 'action_type' ],
                                      step, pja_dict[ 'output_name' ],
                                      pja_dict[ 'action_arguments' ] )
         # Second pass to deal with connections between steps