commit/galaxy-central: jmchilton: Fix upload tool for 6cb895d.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/8c0b86881425/ Changeset: 8c0b86881425 User: jmchilton Date: 2014-08-27 19:06:26 Summary: Fix upload tool for 6cb895d. Web form (at least for older style upload tool) was passing in '' and the UUID custom datatype treats this as an invalid UUID (probably correct) instead of a None. This changeset fixes that by ensuring these values coming in through the controllers are transformed into None-s. Affected #: 1 file diff -r 3e00d002e7ba1fdd9d914bcd68589aad5c1e21ff -r 8c0b86881425de9ba43c6aa604e868236cb7a9c9 lib/galaxy/tools/parameters/grouping.py --- a/lib/galaxy/tools/parameters/grouping.py +++ b/lib/galaxy/tools/parameters/grouping.py @@ -278,7 +278,7 @@ ftp_files = context['ftp_files'] name = context.get( 'NAME', None ) info = context.get( 'INFO', None ) - uuid = context.get( 'uuid', None ) + uuid = context.get( 'uuid', None ) or None # Turn '' to None warnings = [] to_posix_lines = False if context.get( 'to_posix_lines', None ) not in [ "None", None, False ]: @@ -324,7 +324,7 @@ data_file = context['file_data'] url_paste = context['url_paste'] ftp_files = context['ftp_files'] - uuid = context.get( 'uuid', None ) + uuid = context.get( 'uuid', None ) or None # Turn '' to None name = context.get( 'NAME', None ) info = context.get( 'INFO', None ) to_posix_lines = False 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