details: http://www.bx.psu.edu/hg/galaxy/rev/ad5219e97c2f changeset: 3259:ad5219e97c2f user: Greg Von Kuster <greg@bx.psu.edu> date: Fri Jan 22 15:09:26 2010 -0500 description: Fix for tool_runner - a new history is now created for a user that is visiting Galaxy from an external application ( e.g., UCSC ) for the very first time. diffstat: lib/galaxy/web/controllers/tool_runner.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (14 lines): diff -r 29a8cc301cc5 -r ad5219e97c2f lib/galaxy/web/controllers/tool_runner.py --- a/lib/galaxy/web/controllers/tool_runner.py Fri Jan 22 13:51:56 2010 -0500 +++ b/lib/galaxy/web/controllers/tool_runner.py Fri Jan 22 15:09:26 2010 -0500 @@ -47,7 +47,9 @@ #do param translation here, used by datasource tools if tool.input_translator: tool.input_translator.translate( params ) - history = trans.get_history() + # We may be visiting Galaxy for the first time ( e.g., sending data from UCSC ), + # so make sure to create a new history if we've never had one before. + history = trans.get_history( create=True ) template, vars = tool.handle_input( trans, params.__dict__ ) if len(params) > 0: trans.log_event( "Tool params: %s" % (str(params)), tool_id=tool_id )