Commit 5cee0ddf authored by Jérome Perrin's avatar Jérome Perrin

define getFormat and getType methods on QueryMixin class



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14031 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 923481ff
...@@ -181,10 +181,20 @@ class UidBuffer(TM): ...@@ -181,10 +181,20 @@ class UidBuffer(TM):
self.temporary_buffer.setdefault(tid, []).extend(iterable) self.temporary_buffer.setdefault(tid, []).extend(iterable)
class QueryMixin: class QueryMixin:
operator = None
format = None
type = None
def getOperator(self): def getOperator(self):
return self.operator return self.operator
def getFormat(self):
return self.format
def getType(self):
return self.type
def getLogicalOperator(self): def getLogicalOperator(self):
return self.logical_operator return self.logical_operator
...@@ -246,12 +256,6 @@ class Query(QueryMixin): ...@@ -246,12 +256,6 @@ class Query(QueryMixin):
def getRange(self): def getRange(self):
return self.range return self.range
def getFormat(self):
return self.format
def getType(self):
return self.type
def getTableAliasList(self): def getTableAliasList(self):
return self.table_alias_list return self.table_alias_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