Esempio n. 1
0
def process_input_boxes(request,keyprefix,min,max):
    return_list=[]
    for i in range(min,max):
        if _request_param_post(request,keyprefix+str(i)):
            id = _request_param_post(request,keyprefix+str(i)).strip()
            return_list.append(int(id))
    return return_list
Esempio n. 2
0
def _extract_params(request,keys):
    from utils.html import _request_param_post,_request_param_get
    params={}
    for key in keys:
        params[key]=''
        if _request_param_post(request,key):
          value = _request_param_post(request,key)
          value = value.strip()
          params[key]=value
    return [params.get(key,'') for key in keys]