Commit f040387f authored by Vincent Pelletier's avatar Vincent Pelletier

Revert commit #15457. It is not a good solution to the problem I'm solving.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17f69549
......@@ -258,13 +258,6 @@ class Query(QueryMixin):
def __call__(self):
self.asSQLExpression()
def __hash__(self):
value = self.value
if isinstance(value, list):
value = tuple(value)
return hash((self.format, self.operator, self.range, self.search_mode,
self.table_alias_list, self.key, value, self.type))
def getRange(self):
return self.range
......@@ -461,10 +454,6 @@ class ComplexQuery(QueryMixin):
def __call__(self):
self.asSQLExpression()
def __hash__(self):
subquery_hash = hash(tuple([hash(x) for x in self.getQueryList()]))
return hash((subquery_hash, self.operator))
def getQueryList(self):
return self.query_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment