1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/563d279f69bc/ changeset: 563d279f69bc user: greg date: 2012-11-06 22:11:13 summary: Add the ability to view the current data tables registry. affected #: 4 files
diff -r 1911265573315cf71962ac1ae5ca6ba513d051b2 -r 563d279f69bcec68c76a5a3c7c4144b34b614011 lib/galaxy/webapps/galaxy/controllers/admin.py --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -763,3 +763,9 @@ message = util.restore_text( kwd.get( 'message', '' ) ) status = util.restore_text( kwd.get( 'status', 'done' ) ) return trans.fill_template( 'admin/view_datatypes_registry.mako', message=message, status=status ) + @web.expose + @web.require_admin + def view_tool_data_tables( self, trans, **kwd ): + message = util.restore_text( kwd.get( 'message', '' ) ) + status = util.restore_text( kwd.get( 'status', 'done' ) ) + return trans.fill_template( 'admin/view_data_tables_registry.mako', message=message, status=status )
diff -r 1911265573315cf71962ac1ae5ca6ba513d051b2 -r 563d279f69bcec68c76a5a3c7c4144b34b614011 templates/admin/view_data_tables_registry.mako --- /dev/null +++ b/templates/admin/view_data_tables_registry.mako @@ -0,0 +1,42 @@ +<%inherit file="/base.mako"/> +<%namespace file="/message.mako" import="render_msg" /> + +%if message: + ${render_msg( message, status )} +%endif + +<% + ctr = 0 + data_tables = trans.app.tool_data_tables + sorted_data_table_elem_names = sorted( trans.app.tool_data_tables.data_table_elem_names ) +%> + +<div class="toolForm"> + <div class="toolFormTitle">Current data table registry contains ${len( sorted_data_table_elem_names )} data tables</div> + <div class="toolFormBody"> + <table class="manage-table colored" border="0" cellspacing="0" cellpadding="0" width="100%"> + <tr> + <th bgcolor="#D8D8D8">Name</th> + <th bgcolor="#D8D8D8">Tool data path</th> + <th bgcolor="#D8D8D8">Missing index file</th> + </tr> + %for data_table_elem_name in sorted_data_table_elem_names: + <% data_table = data_tables[ data_table_elem_name ] %> + %if ctr % 2 == 1: + <tr class="odd_row"> + %else: + <tr class="tr"> + %endif + <td>${data_table.name}</td> + <td>${data_table.tool_data_path}</td> + <td> + %if data_table.missing_index_file: + ${data_table.missing_index_file} + %endif + </td> + </tr> + <% ctr += 1 %> + %endfor + </table> + </div> +</div>
diff -r 1911265573315cf71962ac1ae5ca6ba513d051b2 -r 563d279f69bcec68c76a5a3c7c4144b34b614011 templates/admin/view_datatypes_registry.mako --- a/templates/admin/view_datatypes_registry.mako +++ b/templates/admin/view_datatypes_registry.mako @@ -22,14 +22,14 @@ %><div class="toolForm"> - <div class="toolFormTitle">Current datatypes registry contains ${len( sorted_datatypes )} datatypes</div> + <div class="toolFormTitle">Current data types registry contains ${len( sorted_datatypes )} data types</div><div class="toolFormBody"><table class="manage-table colored" border="0" cellspacing="0" cellpadding="0" width="100%"><tr> - <th>Extension</th> - <th>Type</th> - <th>Mimetype</th> - <th>Display in upload</th> + <th bgcolor="#D8D8D8">Extension</th> + <th bgcolor="#D8D8D8">Type</th> + <th bgcolor="#D8D8D8">Mimetype</th> + <th bgcolor="#D8D8D8">Display in upload</th></tr> %for datatype in sorted_datatypes: %if ctr % 2 == 1:
diff -r 1911265573315cf71962ac1ae5ca6ba513d051b2 -r 563d279f69bcec68c76a5a3c7c4144b34b614011 templates/webapps/galaxy/admin/index.mako --- a/templates/webapps/galaxy/admin/index.mako +++ b/templates/webapps/galaxy/admin/index.mako @@ -65,7 +65,8 @@ <div class="toolSectionTitle">Server</div><div class="toolSectionBody"><div class="toolSectionBg"> - <div class="toolTitle"><a href="${h.url_for( controller='admin', action='view_datatypes_registry' )}" target="galaxy_main">View datatypes registry</a></div> + <div class="toolTitle"><a href="${h.url_for( controller='admin', action='view_datatypes_registry' )}" target="galaxy_main">View data types registry</a></div> + <div class="toolTitle"><a href="${h.url_for( controller='admin', action='view_tool_data_tables' )}" target="galaxy_main">View data tables registry</a></div><div class="toolTitle"><a href="${h.url_for( controller='admin', action='tool_versions' )}" target="galaxy_main">View tool lineage</a></div><div class="toolTitle"><a href="${h.url_for( controller='admin', action='reload_tool' )}" target="galaxy_main">Reload a tool's configuration</a></div><div class="toolTitle"><a href="${h.url_for( controller='admin', action='memdump' )}" target="galaxy_main">Profile memory usage</a></div>
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.
galaxy-commits@lists.galaxyproject.org