Re: [galaxy-dev] enforcing minimum length on text params

2014-04-10 Thread Nicola Soranzo
Hi Ravi, for that you need a regex validator: https://bitbucket.org/galaxy/galaxy-central/src/tip/lib/galaxy/tools/parameters/validation.py#cl-27 e.g. .*\S Best, Nicola Il giorno gio, 10/04/2014 alle 10.20 -0400, Sanka, Ravi ha scritto: > Hi Nicola, > > Perchance, do you know what type of va

Re: [galaxy-dev] enforcing minimum length on text params

2014-04-10 Thread Sanka, Ravi
Hi Nicola, Perchance, do you know what type of validator I can put to ensure that the string input is does not consist of only whitespace? Such a string is still invalid for my tool, but counts as a string. -- Ravi Sanka ICS ­ Sr. Bioinformatics Enginee

Re: [galaxy-dev] enforcing minimum length on text params

2014-04-09 Thread Sanka, Ravi
Hi Nicola, Thank you. I tried the validator as you illustrated, and it worked perfectly. -- Ravi Sanka ICS ­ Sr. Bioinformatics Engineer J. Craig Venter Institute 301-795-7743 -- On 4/9/14 11:06 AM, "Nicol

Re: [galaxy-dev] enforcing minimum length on text params

2014-04-09 Thread Nicola Soranzo
Il 2014-04-09 17:00 Sanka, Ravi ha scritto: Greetings, I am adding a new tool to our in-house Galaxy, which has a few string inputs. I have made each one a text param in the XML, but want to ensure that the user does not leave any empty when he executes the tool. How can I do this? I tried sett