equal
deleted
inserted
replaced
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, |