[Erp5-report] r24271 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 21 16:04:17 CEST 2008


Author: jerome
Date: Tue Oct 21 16:04:08 2008
New Revision: 24271

URL: http://svn.erp5.org?rev=24271&view=rev
Log:
reindex portal caches, and portal gadget if present

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.xml?rev=24271&r1=24270&r2=24271&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_reindexAll.xml Tue Oct 21 16:04:08 2008
@@ -55,7 +55,7 @@
             <key> <string>_body</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-portal = context.getPortalObject()  \n
+portal = context.getPortalObject()\n
 if clear_catalog:\n
   # clear the catalog before reindexing\n
   catalog = portal.portal_catalog.getSQLCatalog(sql_catalog_id)\n
@@ -159,9 +159,14 @@
 object_tag = \'document\'\n
 object_after_tag = folder_after_tag\n
 object_priority = 2 + additional_priority\n
-for folder in [context.portal_templates, context.portal_trash,\n
-               context.portal_domains, context.portal_rules,\n
-               context.portal_deliveries, context.portal_orders]:\n
+tool_list = [portal.portal_templates, portal.portal_trash,\n
+             portal.portal_domains, portal.portal_rules,\n
+             portal.portal_deliveries, portal.portal_orders,\n
+             portal.portal_caches]\n
+if hasattr(portal, \'portal_gadgets\'):\n
+  tool_list.append(portal.portal_gadgets)\n
+\n
+for folder in tool_list:\n
   folder.activate(\n
                     tag=folder_tag,\n
                     priority=object_priority,\n
@@ -296,6 +301,8 @@
                             <string>object_priority</string>
                             <string>_getiter_</string>
                             <string>folder</string>
+                            <string>tool_list</string>
+                            <string>hasattr</string>
                           </tuple>
                         </value>
                     </item>

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=24271&r1=24270&r2=24271&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Oct 21 16:04:08 2008
@@ -1,1 +1,1 @@
-991
+992




More information about the Erp5-report mailing list