Commit f8d5a037 authored by Łukasz Nowak's avatar Łukasz Nowak

- try to return all accessible values, even if preference configuration is wrong


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 139b2aec
...@@ -66,8 +66,9 @@ def getResourceItemList():\n ...@@ -66,8 +66,9 @@ def getResourceItemList():\n
url_list = context.portal_preferences.getPreferredEventResourceList()\n url_list = context.portal_preferences.getPreferredEventResourceList()\n
for url in url_list:\n for url in url_list:\n
try:\n try:\n
resource_value = context.getPortalObject().restrictedTraverse(url)\n resource_value = context.getPortalObject().restrictedTraverse(url, None)\n
result.append((resource_value.getTranslatedTitle(), resource_value.getRelativeUrl()))\n if resource_value is not None:\n
result.append((resource_value.getTranslatedTitle(), resource_value.getRelativeUrl()))\n
except Unauthorized:\n except Unauthorized:\n
pass\n pass\n
return result\n return result\n
......
469 470
\ No newline at end of file \ No newline at end of file
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