def create_request_parameters(parent, request_model, params=None, index=None):
 if (params is None):
  params = {}
 for param in request_model.params:
  source = param.source
  target = param.target
  if (source == 'identifier'):
   value = getattr(parent, xform_name(param.name))
  elif (source == 'data'):
   value = get_data_member(parent, param.path)
  elif (source in ['string', 'integer', 'boolean']):
   value = param.value
  elif (source == 'input'):
   continue
  else:
   raise NotImplementedError('Unsupported source type: {0}'.format(source))
  build_param_structure(params, target, value, index)
 return params

def create_request_parameters ( parent , request_model , params = None , index = None ) : if ( params is None ) : params = { } for param in request_model . params : source = param . source target = param . target if ( source == 'identifier' ) : value = getattr ( parent , xform_name ( param . name ) ) elif ( source == 'data' ) : value = get_data_member ( parent , param . path ) elif ( source in [ 'string' , 'integer' , 'boolean' ] ) : value = param . value elif ( source == 'input' ) : continue else : raise NotImplementedError ( 'Unsupported source type: {0}' . format ( source ) ) build_param_structure ( params , target , value , index ) return params
handle request parameters that can be filled in from identifiers .