commit/galaxy-central: 2 new changesets
2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/be47a7f089f9/ Changeset: be47a7f089f9 Branch: stable User: jgoecks Date: 2013-06-28 21:26:27 Summary: Enhance multi-value select parsing to split on all whitespace; this fixes a bug that prevents multi-value selects from being used in workflows due to web browsers using \r\n for newline designation. Affected #: 1 file diff -r 8c663e656f64a60dac55979841947e78ce23a473 -r be47a7f089f91c4b72c0c5f89182a62589389e1f lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -703,7 +703,10 @@ value = None else: if not isinstance( value, list ): - value = value.split( "\n" ) + # Split on all whitespace. This not only provides flexibility + # in interpreting values but also is needed because many browsers + # use \r\n to separate lines. + value = value.split() return UnvalidatedValue( value ) legal_values = self.get_legal_values( trans, context ) if isinstance( value, list ): https://bitbucket.org/galaxy/galaxy-central/commits/019ad31c3c25/ Changeset: 019ad31c3c25 User: jgoecks Date: 2013-06-28 21:28:01 Summary: Automated merge of stable branch. Affected #: 1 file diff -r b89b721a0b3db47cdeddef35f03ce4c2ffcb47b5 -r 019ad31c3c2502005846dadc5c0457bbb6f80712 lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -703,7 +703,10 @@ value = None else: if not isinstance( value, list ): - value = value.split( "\n" ) + # Split on all whitespace. This not only provides flexibility + # in interpreting values but also is needed because many browsers + # use \r\n to separate lines. + value = value.split() return UnvalidatedValue( value ) legal_values = self.get_legal_values( trans, context ) if isinstance( value, list ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org