I will try this method. Thank you very much!


2013/4/8 Nate Coraor <nate@bx.psu.edu>
On Apr 4, 2013, at 9:41 AM, BingXin Lu wrote:

> Dear all,
>
> I  have added a tool in galaxy. After clicking 'Execute',  this tool will query an external database for some information to ensure that there are no conflict records in the database. So sometimes an alert message should be sent to user if there are wrong records in the database. But I have not found out an efficient way to implement this in galaxy.  I am wondering if it is possible to give some warning message to users when running a tool in galaxy and how to do it if it is feasible.
>
> I implemented the tool with an xml file and a python file. I am wondering calling javascript from the python code to give user error information. But it seems infeasible and I do not know where to start.

Hi Bingxin,

The simplest method would be to output the messages from your tool.  For a warning message that does not cause the tool to fail, write the messages to stdout.  If the warning conditions should cause the tool to fail, write the messages to stderr.

--nate

>
> Do you have any ideas?
>
> Thank you very much!
>
> Best regards,
> --Bingxin
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>  http://lists.bx.psu.edu/
>
> To search Galaxy mailing lists use the unified search at:
>  http://galaxyproject.org/search/mailinglists/