Commit ff48f61b authored by Rafael Monnerat's avatar Rafael Monnerat

This fix should not change other parts only Planning Box stuff.

Remove hasattr() this is already validated inside Planning Box.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13643 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 383e087f
......@@ -1372,10 +1372,8 @@ def makeTreeList(here, form, root_dict, report_path, base_category,
if hasattr(aq_base(root), 'objectValues'):
# If this is a folder, try to browse the hierarchy
object_list = root.searchFolder(sort_on=sort_on)
elif hasattr(aq_base(root), list_method.__name__ ):
object_list = list_method(portal_type=filtered_portal_types)
else:
object_list = []
object_list = list_method(portal_type=filtered_portal_types)
for zo in object_list:
o = zo.getObject()
if o 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