def params_from_strings(params, param_values, app, ignore_errors=False):
 rval = dict()
 param_values = (param_values or {})
 for (key, value) in param_values.items():
  value = json_fix(safe_loads(value))
  if (key in params):
   value = params[key].value_from_basic(value, app, ignore_errors)
  rval[key] = value
 return rval

def params_from_strings ( params , param_values , app , ignore_errors = False ) : rval = dict ( ) param_values = ( param_values or { } ) for ( key , value ) in param_values . items ( ) : value = json_fix ( safe_loads ( value ) ) if ( key in params ) : value = params [ key ] . value_from_basic ( value , app , ignore_errors ) rval [ key ] = value return rval
convert a dictionary of strings as produced by params_to_strings back into parameter values .