Commit 1e1ca2e9 authored by Kevin Deldycke's avatar Kevin Deldycke

Don't return the last item

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 600dece0
......@@ -84,7 +84,10 @@ def getGapItemList(gap_root, portal_path): \n
\n
from Products.ERP5Type.Cache import CachingMethod\n
getGapItemList = CachingMethod(getGapItemList, id=\'Account.getGapItemList\')\n
return getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
gap_item_list = getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
\n
# Don\'t return the last item, which is the gap_root (like "fr/pcg")\n
return gap_item_list[:-1]\n
</string> </value>
</item>
<item>
......@@ -134,6 +137,8 @@ return getGapItemList(gap_root=gap_root, portal_path=context.portal_url())\n
<string>getGapItemList</string>
<string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string>
<string>gap_item_list</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
......
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