Commit 6fd4354f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Sebastien Robin

since Zope 2.12.23, ObjectManager's get and __getitem__ returns only 'items'...

since Zope 2.12.23, ObjectManager's get and __getitem__ returns only 'items' (no attributes / methods from the class or from acquisition).
parent f253616b
......@@ -324,7 +324,7 @@ class ReportSection:
# which is based on specified selection_name in the listbox.
form_id = self.getFormId()
if form_id:
listbox = getattr(context[form_id], 'listbox', None)
listbox = getattr(getattr(context, form_id), 'listbox', None)
if listbox is not None:
selection_name = listbox.get_value('selection_name')
if render_prefix is not None:
......@@ -392,7 +392,7 @@ class ReportSection:
selection_list = []
form_id = self.getFormId()
if form_id:
listbox = getattr(context[form_id], 'listbox', None)
listbox = getattr(getattr(context, form_id), 'listbox', None)
if listbox is not None:
selection_list.append(listbox.get_value('selection_name'))
selection_list.append(self.selection_name)
......
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