From ef799508f6d8d9b11526fd60db9c7de0ad70ddea Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Fri, 22 Jan 2010 12:33:34 +0000
Subject: [PATCH] 2010-01-22 nicolas * Update configuration of Caching Policy
 Manager to fill Last-Modified Header with modification_date. * Web Site and
 Web Section are not using Caching Policy Manager * Use
 getPortalWebDocumentTypeLits instead of Hardcoded portal_type reviewed by
 romain

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31901 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml | 8 ++++----
 bt5/erp5_web/bt/change_log                               | 5 +++++
 bt5/erp5_web/bt/revision                                 | 2 +-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml b/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
index 03d72361af..f5e618a0c5 100644
--- a/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
+++ b/bt5/erp5_web/ToolTemplateItem/caching_policy_manager.xml
@@ -241,7 +241,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/modified</string> </value>
+            <value> <string>object/getModificationDate</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -289,7 +289,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/modified</string> </value>
+            <value> <string>object/getModificationDate</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -337,7 +337,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>object/modified</string> </value>
+            <value> <string>object/getModificationDate</string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -353,7 +353,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python: member is None and object.getPortalType() in ("Web Page", "Web Section", "Web Site")</string> </value>
+            <value> <string>python: member is None and object.getPortalType() in object.getPortalWebDocumentTypeList()</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_web/bt/change_log b/bt5/erp5_web/bt/change_log
index abc140e4a0..bcd458afb3 100644
--- a/bt5/erp5_web/bt/change_log
+++ b/bt5/erp5_web/bt/change_log
@@ -1,3 +1,8 @@
+2010-01-22 nicolas
+* Update configuration of Caching Policy Manager to fill Last-Modified Header with modification_date.
+* Web Site and Web Section are not using Caching Policy Manager
+* Use getPortalWebDocumentTypeLits instead of Hardcoded portal_type
+
 2009-10-16 rafael
 * Update for the changes of new portal types of portal types.
 
diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision
index 721527c693..8ffdba9a31 100644
--- a/bt5/erp5_web/bt/revision
+++ b/bt5/erp5_web/bt/revision
@@ -1 +1 @@
-896
\ No newline at end of file
+900
\ No newline at end of file
-- 
2.30.9