1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/c8c181a90467/ changeset: c8c181a90467 user: dan date: 2012-12-12 20:15:25 summary: Fix for displaying old-style external display applications. Fixes e.g. display at UCSC for BED in client-side history items. affected #: 1 file diff -r bfbf96a1435087fe4aaea6c0e16c072777ccdabd -r c8c181a904677adf0c9c65a1151848d9d2da16fb lib/galaxy/webapps/galaxy/api/history_contents.py --- a/lib/galaxy/webapps/galaxy/api/history_contents.py +++ b/lib/galaxy/webapps/galaxy/api/history_contents.py @@ -196,6 +196,7 @@ hda_dict[ 'meta_files' ] = meta_files hda_dict[ 'display_apps' ] = get_display_apps( trans, hda ) + hda_dict[ 'display_types' ] = get_display_types( trans, hda ) hda_dict[ 'visualizations' ] = hda.get_visualizations() hda_dict[ 'peek' ] = to_unicode( hda.display_peek() ) @@ -226,3 +227,22 @@ display_apps.append( dict( label=display_app.name, links=app_links ) ) return display_apps + +def get_display_types( trans, hda ): + #TODO: make more straightforward (somehow) + #FIXME: need to force a transition to all new-style display applications + display_apps = [] + + for display_app in hda.datatype.get_display_types(): + app_links = [] + target_frame, display_links = hda.datatype.get_display_links( hda, display_app, trans.app, trans.request.base ) + for display_name, display_link in display_links: + app_links.append({ + 'target' : target_frame, + 'href' : display_link, + 'text' : display_name + }) + if app_links: + display_apps.append( dict( label=hda.datatype.get_display_label( display_app ), links=app_links ) ) + + return display_apps 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.