0008-workflows-add-WorkflowStatusItem.__eq__-operator-331.patch
wcs/workflows.py | ||
---|---|---|
2079 | 2079 |
def __repr__(self): |
2080 | 2080 |
return '<%s %s>' % (self.__class__.__name__, self.id) |
2081 | 2081 | |
2082 |
def __eq__(self, other): |
|
2083 |
if type(other) is not type(self): |
|
2084 |
return False |
|
2085 |
if self.id != other.id: |
|
2086 |
return False |
|
2087 |
for parameter in self.get_parameters(): |
|
2088 |
if getattr(self, parameter) != getattr(other, parameter): |
|
2089 |
return False |
|
2090 |
return True |
|
2091 | ||
2082 | 2092 | |
2083 | 2093 |
class WorkflowStatusJumpItem(WorkflowStatusItem): |
2084 | 2094 |
status = None |
2085 |
- |