

def parse_params(self, request, **kw):
    data = getrqdata(request)
    pv = data.getlist(self.url_param)

    def parse(sf, form_value):
        if ((form_value == '') and (not sf.field.empty_strings_allowed)):
            return sf.form2obj_default
        else:
            return sf.parse_form_value(form_value, None)
    if (len(pv) > 0):
        if (len(self.param_fields) != len(pv)):
            raise Exception(('%s expects a list of %d values but got %d: %s' % (self, len(self.param_fields), len(data), pv)))
        for (i, f) in enumerate(self.param_fields):
            kw[f.field.name] = parse(f, pv[i])
    return kw

dataset/ETHPy150Open lsaffre/lino/lino/core/store.py ParameterStore.parse_params/VarMisuse@133/183 `pv`->`data`