Commit c9eea8a6 authored by Jérome Perrin's avatar Jérome Perrin

fixup! web_renderjs_ui: py3

parent 41f523f2
last_message = context.getLastLog()[-1] import re
line_list = filter(None, last_message.replace("=\n","").split("\n")) from Products.ERP5Type.Utils import bytes2str
for line in line_list: last_message_text = bytes2str(context.getMessageList()[-1][2])
if "http" in line: __traceback_info__ = last_message_text
return context.REQUEST.RESPONSE.redirect(line.replace("=3D", "="))
raise RuntimeError("URL not found in the email") container.REQUEST.RESPONSE.redirect(re.findall(r"http:.*", bytes2str(last_message_text))[0])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment