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