From 4d695f9a95f7aff1c3a623b4d727006ba23e72e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 9 Mar 2007 13:35:46 +0000
Subject: [PATCH] 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
---
 .../erp5_accounting_ui_test/AccountingZuite_reset.xml       | 6 +-----
 bt5/erp5_accounting_ui_test/bt/revision                     | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
index fa1096a16c..1eccc60023 100644
--- a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
+++ b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
@@ -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>
diff --git a/bt5/erp5_accounting_ui_test/bt/revision b/bt5/erp5_accounting_ui_test/bt/revision
index c24b6ae77d..72f523f36e 100644
--- a/bt5/erp5_accounting_ui_test/bt/revision
+++ b/bt5/erp5_accounting_ui_test/bt/revision
@@ -1 +1 @@
-38
\ No newline at end of file
+39
\ No newline at end of file
-- 
2.30.9