diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 6d2eaf1e3b3..04b96fa6ac7 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -1774,6 +1774,10 @@ class LibraryDataset( object ): misc_info = ldda.info, misc_blurb = ldda.blurb, template_data = template_data ) + if ldda.dataset.uuid is None: + rval['uuid'] = None + else: + rval['uuid'] = str(ldda.dataset.uuid) for name, spec in ldda.metadata.spec.items(): val = ldda.metadata.get( name ) if isinstance( val, MetadataFile ): diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index aa507ee73e3..0dadf41735c 100755 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1922,6 +1922,8 @@ class Tool( object ): if "runtool_btn" not in incoming and "URL" not in incoming: if not self.display_interface: return 'message.mako', dict( status='info', message="The interface for this tool cannot be displayed", refresh_frames=['everything'] ) + if len(incoming): + self.update_state( trans, self.inputs_by_page[state.page], state.inputs, incoming, old_errors=old_errors or {} ) return "tool_form.mako", dict( errors={}, tool_state=state, param_values={}, incoming={} ) # Process incoming data if not( self.check_values ): diff --git a/lib/galaxy/webapps/galaxy/api/history_contents.py b/lib/galaxy/webapps/galaxy/api/history_contents.py index fa3aa6485eb..ae43c232fde 100644 --- a/lib/galaxy/webapps/galaxy/api/history_contents.py +++ b/lib/galaxy/webapps/galaxy/api/history_contents.py @@ -220,6 +220,11 @@ def get_hda_dict( trans, history, hda, for_editing ): hda_dict[ 'display_apps' ] = get_display_apps( trans, hda ) hda_dict[ 'display_types' ] = get_old_display_applications( trans, hda ) + if hda.dataset.uuid is None: + hda_dict['uuid'] = None + else: + hda_dict['uuid'] = str(hda.dataset.uuid) + hda_dict[ 'visualizations' ] = hda.get_visualizations() if hda.peek and hda.peek != 'no peek': hda_dict[ 'peek' ] = to_unicode( hda.display_peek() ) diff --git a/lib/galaxy/webapps/galaxy/controllers/root.py b/lib/galaxy/webapps/galaxy/controllers/root.py index 34d61a95622..694239d50be 100644 --- a/lib/galaxy/webapps/galaxy/controllers/root.py +++ b/lib/galaxy/webapps/galaxy/controllers/root.py @@ -22,7 +22,8 @@ class RootController( BaseUIController, UsesHistoryMixin, UsesAnnotations ): return trans.fill_template( "root/index.mako", tool_id=tool_id, workflow_id=workflow_id, - m_c=m_c, m_a=m_a ) + m_c=m_c, m_a=m_a, + params=kwd ) ## ---- Tool related ----------------------------------------------------- diff --git a/templates/webapps/galaxy/library/common/ldda_info.mako b/templates/webapps/galaxy/library/common/ldda_info.mako index db58813587f..a1a94c7865a 100644 --- a/templates/webapps/galaxy/library/common/ldda_info.mako +++ b/templates/webapps/galaxy/library/common/ldda_info.mako @@ -100,6 +100,13 @@ ${ldda.get_size( nice_size=True )}
+ %if ldda.dataset.uuid: +