Commit 0fb7f3e3 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

erp5_forge: fix

parent 44d9f911
from transaction import doom
from zExceptions import Success
def respond(v):
if REQUEST is None:
return v
REQUEST.RESPONSE.setHeader("Content-Type", "text/html")
REQUEST.RESPONSE.write(v)
raise ValueError("Abort Transaction")
doom()
raise Success(v)
return respond(context.Base_formatDiffObjectListToHTML(context.BusinessTemplate_getDiffObjectListFromZODB(detailed=detailed)))
from transaction import doom
from zExceptions import Success
def respond(v):
if REQUEST is None:
return v
REQUEST.RESPONSE.write(v)
raise ValueError("Abort Transaction")
doom()
raise Success(v)
return respond(context.Base_formatDiffObjectListToText(context.BusinessTemplate_getDiffObjectListFromZODB(detailed=detailed)))
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