Commit 611ab571 authored by Jérome Perrin's avatar Jérome Perrin

LOG the corresponding field when an error happens on evaluating a TALES expr


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3402 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b9c0f3e
......@@ -91,7 +91,8 @@ class ERP5Field(Field):
except:
# We add this safety exception to make sure we always get
# something reasonable rather than generate plenty of errors
LOG('ERP5Form.get_value, exception on tales_expr: ',0,'', error=sys.exc_info())
LOG('ERP5Form.get_value ( %s/%s [%s]), exception on tales_expr: '%(
self.aq_parent.getId(), self.getId(), id) ,0,'', error=sys.exc_info())
value = self.get_orig_value(id)
else:
# FIXME: backwards compat hack to make sure overrides dict exists
......@@ -449,4 +450,4 @@ psyco.bind(Field.get_value)
#psyco.bind(PageTemplate.pt_macros)
#from Products.CMFCore.ActionsTool import ActionsTool
#psyco.bind(ActionsTool.listFilteredActionsFor)
\ No newline at end of file
#psyco.bind(ActionsTool.listFilteredActionsFor)
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