Commit 1e3f641e authored by Vincent Pelletier's avatar Vincent Pelletier

Actualy this bogus-looking code is required to workaround a python weirdness...

Actualy this bogus-looking code is required to workaround a python weirdness when keyword arguments are used with unknown argument list...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50ff11e3
......@@ -440,8 +440,14 @@ class ComplexQuery(QueryMixin):
"""
Used in order to concatenate many queries
"""
def __init__(self, operator='AND', *args, **kw):
def __init__(self, *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