Commit 4d695f9a authored by Jérome Perrin's avatar Jérome Perrin

don't use the old clearCache API. Actually, don't clear cache again, enabling

the preference should clear the cache.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13305 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbf4581e
......@@ -94,9 +94,7 @@ if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
cb = ptool.manage_copyObjects([\'accounting_zuite_preference\'])\n
# FIXME: how could this work ???\n
ptool.manage_pasteObjects(cb)\n
# as the preference changed, it\'s safer to clear the cache\n
from Products.ERP5Type.Cache import clearCache\n
clearCache()\n
\n
pref.enable()\n
\n
# reset selections\n
......@@ -171,8 +169,6 @@ return "Reset Successfully."\n
<string>str</string>
<string>ptool</string>
<string>cb</string>
<string>Products.ERP5Type.Cache</string>
<string>clearCache</string>
<string>stool</string>
<string>form</string>
<string>getattr</string>
......
38
\ No newline at end of file
39
\ 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