mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #2161 from guerler/fix_wrapper_issue_001
[16.04] Fix wrapper issue, overload __ne__
This commit is contained in:
@@ -81,6 +81,9 @@ class InputValueWrapper( ToolParameterValueWrapper ):
|
||||
else:
|
||||
return super( InputValueWrapper, self ) == other
|
||||
|
||||
def __ne__( self, other ):
|
||||
return not self == other
|
||||
|
||||
def __str__( self ):
|
||||
to_param_dict_string = self.input.to_param_dict_string( self.value, self._other_values )
|
||||
if isinstance( to_param_dict_string, list ):
|
||||
@@ -146,6 +149,9 @@ class SelectToolParameterWrapper( ToolParameterValueWrapper ):
|
||||
else:
|
||||
return super( SelectToolParameterWrapper, self ) == other
|
||||
|
||||
def __ne__( self, other ):
|
||||
return not self == other
|
||||
|
||||
def __str__( self ):
|
||||
# Assuming value is never a path - otherwise would need to pass
|
||||
# along following argument value_map=self._path_rewriter.
|
||||
|
||||
Reference in New Issue
Block a user