Remove legacy history ids export controller endpoint and template

This commit is contained in:
guerler
2024-02-20 07:24:30 -05:00
parent 89f23af9fc
commit 90adbc20c2
2 changed files with 0 additions and 28 deletions
@@ -47,27 +47,6 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt
def index(self, trans):
return ""
@web.expose
def as_xml(self, trans, id=None, show_deleted=None, show_hidden=None):
"""
Return a history in xml format.
"""
if trans.app.config.require_login and not trans.user:
return trans.fill_template("/no_access.mako", message="Please log in to access Galaxy histories.")
if id:
history = self.history_manager.get_accessible(self.decode_id(id), trans.user, current_history=trans.history)
else:
history = trans.get_history(most_recent=True, create=True)
trans.response.set_content_type("text/xml")
return trans.fill_template_mako(
"history/as_xml.mako",
history=history,
show_deleted=string_as_bool(show_deleted),
show_hidden=string_as_bool(show_hidden),
)
@expose_api_anonymous
def view(self, trans, id=None, show_deleted=False, show_hidden=False, use_panels=True):
"""
@@ -1,7 +0,0 @@
<?xml version="1.0"?>
<history_ids>
%for i, history in enumerate( t.user.histories ):
<data id="${trans.security.encode_id( history.id )}" hid="${i+1}" num="${len(history.datasets)}" name="${history.name}" create="${history.create_time}" update="${history.update_time}" >
</data>
%endfor
</history_ids>