Commit 50ff11e3 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify code.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 874d120b
......@@ -440,14 +440,8 @@ class ComplexQuery(QueryMixin):
"""
Used in order to concatenate many queries
"""
def __init__(self, *args, **kw):
def __init__(self, operator='AND', *args, **kw):
self.query_list = args
operator = None
if kw.has_key('operator'):
operator = kw['operator']
del kw['operator']
if operator is None:
operator = 'AND'
self.operator = operator
self.__dict__.update(kw)
......
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