Merge pull request #2161 from guerler/fix_wrapper_issue_001

[16.04] Fix wrapper issue, overload __ne__
This commit is contained in:
Dannon Baker
2016-04-14 09:30:02 -04:00
+6
View File
@@ -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.