Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-24 Thread Chorny, Ilya
Any more thought on how to accomplish this without my current hack? Ideally it would be great if this feature could become part of galaxy-central. This is a feature that we would really like to implement so that our reports can link to the output files. Thanks, Ilya -Original

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread Greg Von Kuster
Ilya, you can use trans.request.host to get the base url. On Oct 20, 2011, at 11:52 AM, Chorny, Ilya wrote: I thought I would add this to the list in case anyone in the galaxy :) knew the answer. I get a mapping error every time I invoke url_for. What variable stores the base url for the

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread Chorny, Ilya
I need the base_url and the proxy. That is why I am using cookie_path. Any thoughts on how to get both. Thanks, Ilya -Original Message- From: Greg Von Kuster [mailto:g...@bx.psu.edu] Sent: Friday, October 21, 2011 6:11 AM To: Chorny, Ilya Cc: galaxy-dev@lists.bx.psu.edu Subject: Re:

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread Chorny, Ilya
Also, I do not have access to trans in the Tools class in lib/galaxy/tools/__init__.py. Thanks, Ilya -Original Message- From: galaxy-dev-boun...@lists.bx.psu.edu [mailto:galaxy-dev-boun...@lists.bx.psu.edu] On Behalf Of Chorny, Ilya Sent: Friday, October 21, 2011 8:40 AM To: Greg Von

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread Greg Von Kuster
Ilya, Tools are not tightly coupled to the Galaxy web framework ( they can be executed on the command line outside of Galaxy ) so, as you've commented, you don't have access to the web framework from there. It's unclear to me what you are trying to do. Can you clarify a bit more? Greg Von

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread James Taylor
Excerpts from Chorny, Ilya's message of 2011-10-21 01:51:03 +: I get the following error from routes AttributeError: 'thread._local' object has no attribute 'mapper' Okay, what I suspected. This is a product of the fact that job running is decoupled from the web frontend. The job runner

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-21 Thread James Taylor
Excerpts from Chorny, Ilya's message of 2011-10-21 15:43:35 +: Also, I do not have access to trans in the Tools class in lib/galaxy/tools/__init__.py. 'trans' is the state of a web transaction (a single request response cycle). It is this only accessible for code that occurs within that

[galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-20 Thread Chorny, Ilya
I thought I would add this to the list in case anyone in the galaxy :) knew the answer. I get a mapping error every time I invoke url_for. What variable stores the base url for the galaxy instance? Thanks, Ilya -Original Message- From: Chorny, Ilya Sent: Wednesday, October 19, 2011

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-20 Thread James Taylor
Excerpts from Chorny, Ilya's message of 2011-10-20 15:52:03 +: I thought I would add this to the list in case anyone in the galaxy :) knew the answer. I get a mapping error every time I invoke url_for. What variable stores the base url for the galaxy instance? Can you provide the specific

Re: [galaxy-dev] FW: how do I pass the URL of the input and output files to my tool wrapper?

2011-10-20 Thread Chorny, Ilya
I get the following error from routes AttributeError: 'thread._local' object has no attribute 'mapper' -Original Message- From: James Taylor [mailto:ja...@jamestaylor.org] Sent: Thursday, October 20, 2011 5:46 PM To: Chorny, Ilya Cc: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev]