

def get_context(self, params, query_context):

    class Params(object):
        pass
    context = defaultdict(Params)
    for param in params:
        value = self.resolve(param, query_context)
        if (param.namespace == GLOBAL_NAMESPACE):
            context[param.variable] = value
        else:
            setattr(context[param.namespace], param.variable, value)
    return context

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/performance_sms/query_engine.py QueryEngine.get_context/original