Commit 837480f8 authored by Jérome Perrin's avatar Jérome Perrin

use longer cache on Account_getGapItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35578 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2a2ce20
......@@ -77,17 +77,17 @@ def getGapItemList(only_preferred_gap): \n
.getPreferredAccountingTransactionGap()\n
if gap_root:\n
return ctool.resolveCategory(gap_root).getCategoryChildItemList(\n
base=0, is_self_excluded=1, display_method=display, sort_method=sort)\n
base=False, is_self_excluded=True, display_method=display, sort_method=sort)\n
\n
result = [] \n
for country in ctool.gap.contentValues():\n
for gap_root in country.contentValues():\n
result.extend(gap_root.getCategoryChildItemList(\n
base=0, is_self_excluded=1, display_method=display, sort_method=sort))\n
base=False, is_self_excluded=True, display_method=display, sort_method=sort))\n
return result\n
\n
from Products.ERP5Type.Cache import CachingMethod\n
getGapItemList = CachingMethod(getGapItemList, id=\'Account_getGapItemList\')\n
getGapItemList = CachingMethod(getGapItemList, id=\'Account_getGapItemList\', cache_factory=\'erp5_content_long\')\n
return getGapItemList(only_preferred_gap=only_preferred_gap)\n
</string> </value>
</item>
......
1224
\ No newline at end of file
1225
\ 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