Commit e77e13cf authored by Yoshinori Okuji's avatar Yoshinori Okuji

Try to get an attribute from each brain first.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8260 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 337fd1a8
......@@ -1778,7 +1778,11 @@ class ListBoxRendererLine:
# If a tales expression is not defined, get a skin, an accessor or a property.
if not tales:
if obj is not None:
brain = self.getBrain()
if hasattr(aq_self(brain), alias):
original_value = getattr(brain, alias)
processed_value = original_value
elif obj is not None:
try:
# Get the trailing part.
try:
......
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