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

fixup! web_renderjs_ui: py3

parent 41f523f2
last_message = context.getLastLog()[-1]
line_list = filter(None, last_message.replace("=\n","").split("\n"))
for line in line_list:
if "http" in line:
return context.REQUEST.RESPONSE.redirect(line.replace("=3D", "="))
import re
from Products.ERP5Type.Utils import bytes2str
last_message_text = bytes2str(context.getMessageList()[-1][2])
__traceback_info__ = last_message_text
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