Corrected unsupported 'text' datatype extensions to be the supported 'txt' extension.

This commit is contained in:
Greg Von Kuster
2007-12-11 18:38:28 +00:00
parent 54aa1bf33e
commit 4eeecaea63
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -651,7 +651,7 @@ class DataToolParameter( ToolParameter ):
>>> from galaxy.util.bunch import Bunch
>>> hist = History()
>>> hist.flush()
>>> hist.add_dataset( Dataset( id=1, extension='text' ) )
>>> hist.add_dataset( Dataset( id=1, extension='txt' ) )
>>> hist.add_dataset( Dataset( id=2, extension='bed' ) )
>>> hist.add_dataset( Dataset( id=3, extension='fasta' ) )
>>> hist.add_dataset( Dataset( id=4, extension='png' ) )
+1 -1
View File
@@ -537,7 +537,7 @@ class Universe( BaseController ):
return trans.show_message( "<p><h2>Rename history</h2>%s" % change_msg, refresh_frames=['history'] )
@web.expose
def history_add_to( self, trans, history_id=None, file_data=None, name="Data Added to History",info=None,ext="text",dbkey="?",**kwd ):
def history_add_to( self, trans, history_id=None, file_data=None, name="Data Added to History",info=None,ext="txt",dbkey="?",**kwd ):
"""Adds a POSTed file to a History"""
try:
history = trans.app.model.History.get( history_id )