[Erp5-report] r32498 nicolas - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTempla...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 12 15:23:56 CET 2010
Author: nicolas
Date: Fri Feb 12 15:23:54 2010
New Revision: 32498
URL: http://svn.erp5.org?rev=32498&view=rev
Log:
Compute a better Cache Key to refresh modified object list
rigth after installation of BusinessTemplate.
Usefull when calling reinstall just after a fresh installation.
Reviewed by Seb
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml?rev=32498&r1=32497&r2=32498&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml [utf8] Fri Feb 12 15:23:54 2010
@@ -61,9 +61,18 @@
result = context.preinstall()\n
return result\n
\n
+def cacheIdGenerator(method_id, *args, **kw):\n
+ context = args[0]\n
+ return \'%s%s%s\' % (method_id,\n
+ context.getUid(),\n
+ context.getModificationDate().timeTime())\n
+\n
+cache_id_generator = cacheIdGenerator\n
+\n
getModifiedObjectList = CachingMethod(getModifiedObjectList,\n
id=\'BusinessTemplate_getModifiedObjectList\',\n
- cache_factory=\'erp5_ui_medium\')\n
+ cache_factory=\'erp5_ui_medium\',\n
+ cache_id_generator=cache_id_generator)\n
\n
modified_object_list = getModifiedObjectList(context)\n
keys = modified_object_list.keys()\n
@@ -159,6 +168,8 @@
<string>context</string>
<string>Base_translateString</string>
<string>getModifiedObjectList</string>
+ <string>cacheIdGenerator</string>
+ <string>cache_id_generator</string>
<string>modified_object_list</string>
<string>keys</string>
<string>no_backup_list</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=32498&r1=32497&r2=32498&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Feb 12 15:23:54 2010
@@ -1,1 +1,1 @@
-1471
+1474
More information about the Erp5-report
mailing list