Commit 0449e675 authored by Jérome Perrin's avatar Jérome Perrin

add __traceback_info__ to have extra information in zope traceback. Usefull for debugging


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21559 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9158244
...@@ -110,6 +110,7 @@ class Setter(Method): ...@@ -110,6 +110,7 @@ class Setter(Method):
from Products.CMFCore.Expression import Expression from Products.CMFCore.Expression import Expression
def _evaluateTales(instance=None, value=None): def _evaluateTales(instance=None, value=None):
from Products.ERP5Type.Utils import createExpressionContext from Products.ERP5Type.Utils import createExpressionContext
__traceback_info__ = (instance, value)
expression = Expression(value) expression = Expression(value)
econtext = createExpressionContext(instance) econtext = createExpressionContext(instance)
return expression(econtext) return expression(econtext)
......
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