diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 471443ff128..5aca36fb8ad 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -5,7 +5,7 @@ import pkg_resources; pkg_resources.require( "simplejson" ) -import logging, os, string, sys, tempfile, glob, shutil, types, urllib, re +import logging, os, string, sys, tempfile, glob, shutil, types, urllib import simplejson import binascii from UserDict import DictMixin @@ -326,9 +326,6 @@ class Tool: self.id = root.get( "id" ) if not self.id: raise Exception, "Missing tool 'id'" - # Sanitize ID so that it has only lowercase characters, numbers, and - # underscores. - self.id = re.sub( '[^a-z0-9_]', '_', self.id.lower() ) self.version = root.get( "version" ) if not self.version: # For backward compatibility, some tools may not have versions yet. diff --git a/lib/galaxy/web/controllers/history.py b/lib/galaxy/web/controllers/history.py index b1dcb6384ca..e1d4ac43945 100644 --- a/lib/galaxy/web/controllers/history.py +++ b/lib/galaxy/web/controllers/history.py @@ -493,7 +493,7 @@ class HistoryController( BaseController, Sharable, UsesAnnotations, UsesItemRati ) # Run job to do import. - history_imp_tool = trans.app.toolbox.tools_by_id[ '__import_history__' ] + history_imp_tool = trans.app.toolbox.tools_by_id[ '__IMPORT_HISTORY__' ] incoming = { '__ARCHIVE_SOURCE__' : archive_source, '__ARCHIVE_TYPE__' : archive_type } history_imp_tool.execute( trans, incoming=incoming ) return trans.show_message( "Importing history from '%s'. \ @@ -550,7 +550,7 @@ class HistoryController( BaseController, Sharable, UsesAnnotations, UsesItemRati % ( { 'n' : history.name, 's' : url_for( action="export_archive", id=id, qualified=True ) } ) ) # Run job to do export. - history_exp_tool = trans.app.toolbox.tools_by_id[ '__export_history__' ] + history_exp_tool = trans.app.toolbox.tools_by_id[ '__EXPORT_HISTORY__' ] params = { 'history_to_export' : history, 'compress' : gzip,