Commit cf93e827 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor to get the web page direclty

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44523 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78d78591
......@@ -56,8 +56,7 @@ person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
if not person:\n
return None\n
\n
result_list = portal.portal_catalog(reference=reference, limit=1)\n
web_page = result_list[0].getObject()\n
web_page = portal.portal_catalog.getResultValue(reference=reference)\n
\n
follow_up_list = web_page.getFollowUpList()\n
if person.getRelativeUrl() not in follow_up_list:\n
......
311
\ No newline at end of file
312
\ 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