Commit 96d9871b authored by Jérome Perrin's avatar Jérome Perrin

display the cell name when an exception is raised evaluating it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3824 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0ff92486
......@@ -479,10 +479,12 @@ class PDFForm(File):
return None
context = {'here' : self.aq_parent, 'request' : REQUEST}
context.update (kwargs)
compiled_tales = getEngine().compile(self.cells[cell_name])
value = getEngine().getContext(context).evaluate(compiled_tales)
return value
try :
compiled_tales = getEngine().compile(self.cells[cell_name])
value = getEngine().getContext(context).evaluate(compiled_tales)
return value
except Exception, e :
raise e.__class__, "Exception in %s :\n %s"%(cell_name, e)
security.declareProtected('Change Images and Files', '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