Commit 6576dad1 authored by Jérome Perrin's avatar Jérome Perrin

Use __traceback_info__ to display the name of the currently evaluated cell in the traceback.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bc5438b
......@@ -564,14 +564,11 @@ class PDFForm(File):
context = { 'here' : self.aq_parent,
'context' : self.aq_parent,
'request' : REQUEST }
context.update(kwargs)
try :
compiled_tales = getEngine().compile(self.cells[cell_name])
value = getEngine().getContext(context).evaluate(compiled_tales)
return value
except Exception, e :
LOG('PDFForm', PROBLEM, "Exception in cell %s"%cell_name, e)
raise e.__class__, "Exception in %s :\n %s"%(cell_name, e)
context.update (kwargs)
__traceback_info__ = 'Evaluating cell "%s"' % cell_name
compiled_tales = getEngine().compile(self.cells[cell_name])
value = getEngine().getContext(context).evaluate(compiled_tales)
return value
security.declareProtected(Permissions.ManagePortal, 'setAllCellTALES')
def setAllCellTALES(self, new_cells) :
......
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