Commit af5be6e1 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: add useful __traceback_info__ in getProperty

parent 5a9ccc3a
...@@ -1182,6 +1182,7 @@ class Base( CopyContainer, ...@@ -1182,6 +1182,7 @@ class Base( CopyContainer,
If an accessor exists for this property, the accessor will be called, If an accessor exists for this property, the accessor will be called,
default value will be passed to the accessor as first positional argument. default value will be passed to the accessor as first positional argument.
""" """
__traceback_info__ = (key,)
accessor_name = 'get' + UpperCase(key) accessor_name = 'get' + UpperCase(key)
aq_self = aq_base(self) aq_self = aq_base(self)
if getattr(aq_self, accessor_name, None) is not None: if getattr(aq_self, accessor_name, None) is not None:
......
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