Commit aa772a29 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Tatuya Kamada

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 0885cc71
...@@ -324,7 +324,7 @@ class ReportSection: ...@@ -324,7 +324,7 @@ class ReportSection:
# which is based on specified selection_name in the listbox. # which is based on specified selection_name in the listbox.
form_id = self.getFormId() form_id = self.getFormId()
if form_id: if form_id:
listbox = getattr(context[form_id], 'listbox', None) listbox = getattr(getattr(context, form_id), 'listbox', None)
if listbox is not None: if listbox is not None:
selection_name = listbox.get_value('selection_name') selection_name = listbox.get_value('selection_name')
if render_prefix is not None: if render_prefix is not None:
...@@ -392,7 +392,7 @@ class ReportSection: ...@@ -392,7 +392,7 @@ class ReportSection:
selection_list = [] selection_list = []
form_id = self.getFormId() form_id = self.getFormId()
if form_id: if form_id:
listbox = getattr(context[form_id], 'listbox', None) listbox = getattr(getattr(context, form_id), 'listbox', None)
if listbox is not None: if listbox is not None:
selection_list.append(listbox.get_value('selection_name')) selection_list.append(listbox.get_value('selection_name'))
selection_list.append(self.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