21 if search.search_query.pageno > 1:
23 m = parser_re.match(search.search_query.query)
28 function, string = m.groups()
29 if not string.strip():
34 f = hashlib.new(function.lower())
37 f.update(string.encode(
'utf-8').strip())
38 answer = function +
" " + gettext(
'hash digest') +
": " + f.hexdigest()
41 search.result_container.answers.clear()
42 search.result_container.answers[
'hash'] = {
'answer': answer}