Remove datatpes registry template/endpoint (previous commit replaces this functionality on the client side).

This commit is contained in:
Dannon Baker
2018-06-27 08:13:49 -07:00
parent 1bff38c685
commit b4814bb1b1
2 changed files with 0 additions and 64 deletions
@@ -908,13 +908,6 @@ class AdminGalaxy(controller.JSAppLauncher, AdminActions, UsesQuotaMixin, QuotaP
def tool_errors(self, trans, **kwd):
return trans.fill_template('admin/tool_errors.mako', tool_errors=global_tool_errors.error_stack)
@web.expose
@web.require_admin
def view_datatypes_registry(self, trans, **kwd):
message = escape(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 display_applications(self, trans, **kwd):
@@ -1,57 +0,0 @@
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
%if message:
${render_msg( message, status )}
%endif
<%
import galaxy.util
from galaxy.web.base.controller import sort_by_attr, Datatype
ctr = 0
datatypes = []
for elem in trans.app.datatypes_registry.datatype_elems:
# Build a list of objects that can be sorted.
extension = elem.get( 'extension', None )
dtype = elem.get( 'type', None )
type_extension = elem.get( 'type_extension', None )
mimetype = elem.get( 'mimetype', None )
display_in_upload = galaxy.util.string_as_bool( elem.get( 'display_in_upload', False ) )
datatypes.append( Datatype( extension, dtype, type_extension, mimetype, display_in_upload ) )
sorted_datatypes = sort_by_attr( datatypes, 'extension' )
%>
<div class="toolForm" id="datatypes-grid">
<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 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:
<tr class="odd_row">
%else:
<tr class="tr">
%endif
<td>${datatype.extension|h}</td>
<td>${datatype.dtype|h}</td>
<td>
%if datatype.mimetype:
${datatype.mimetype|h}
%endif
</td>
<td>
%if datatype.display_in_upload:
${datatype.display_in_upload|h}
%endif
</td>
</tr>
<% ctr += 1 %>
%endfor
</table>
</div>
</div>