web/request.py
changeset 10671 e08102f45237
parent 10662 10942ed172de
child 10672 f6f425a54a8d
equal deleted inserted replaced
10670:96380c1524b0 10671:e08102f45237
    50 from cubicweb.web.http_headers import Headers, Cookie, parseDateTime
    50 from cubicweb.web.http_headers import Headers, Cookie, parseDateTime
    51 
    51 
    52 _MARKER = object()
    52 _MARKER = object()
    53 
    53 
    54 def build_cb_uid(seed):
    54 def build_cb_uid(seed):
    55     sha = sha1('%s%s%s' % (time.time(), seed, random.random()))
    55     sha = sha1(('%s%s%s' % (time.time(), seed, random.random())).encode('ascii'))
    56     return 'cb_%s' % (sha.hexdigest())
    56     return 'cb_%s' % (sha.hexdigest())
    57 
    57 
    58 
    58 
    59 def list_form_param(form, param, pop=False):
    59 def list_form_param(form, param, pop=False):
    60     """get param from form parameters and return its value as a list,
    60     """get param from form parameters and return its value as a list,