Contact: fumanchu@aminus.org

Log in as guest/geniusql to create tickets

Changeset 192

Show
Ignore:
Timestamp:
10/06/07 21:30:11
Author:
fumanchu
Message:

logic.Expression now allows the 'func' arg to be a dict; it will convert it to a func using logic.filter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/geniusql/logic.py

    r191 r192  
    281281            self.ast.dstar_args = "kwargs" 
    282282        else: 
     283            if isinstance(func, dict): 
     284                func = filter(**func) 
    283285            self.func = func 
    284286            lp = astwalk.LambdaParser(func, env=builtins, reduce=earlybind)