mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Merge pull request #1654 from guerler/fix_source_tools_000
Fix validation for data source tools
This commit is contained in:
@@ -44,7 +44,7 @@ def visit_input_values( inputs, input_values, callback, name_prefix="", label_pr
|
||||
else:
|
||||
args = {
|
||||
'input' : input,
|
||||
'value' : input_values[ input.name ],
|
||||
'value' : input_values.get( input.name ),
|
||||
'prefixed_name' : "%s%s" % ( name_prefix, input.name ),
|
||||
'prefixed_label' : "%s%s" % ( label_prefix, input.label )
|
||||
}
|
||||
|
||||
@@ -726,7 +726,11 @@ class BaseURLToolParameter( HiddenToolParameter ):
|
||||
return self._get_value()
|
||||
|
||||
def _get_value( self ):
|
||||
return url_for( self.value, qualified=True )
|
||||
try:
|
||||
return url_for( self.value, qualified=True )
|
||||
except Exception as e:
|
||||
log.debug( 'Url creation failed for "%s": %s', self.name, e )
|
||||
return self.value
|
||||
|
||||
def to_dict( self, trans, view='collection', value_mapper=None, other_values={} ):
|
||||
d = super( BaseURLToolParameter, self ).to_dict( trans )
|
||||
|
||||
Reference in New Issue
Block a user