diff --git a/product/ERP5Form/PDFForm.py b/product/ERP5Form/PDFForm.py index d102d0cad31ff13cbf32dc5133f9e379e07fda2c..b18fc5a59ca3c559d07f51ecf29a82b17b2ca909 100644 --- a/product/ERP5Form/PDFForm.py +++ b/product/ERP5Form/PDFForm.py @@ -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) :