From 93a471c8d9e11c6462b1c3eaf46f37147af9d98c Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Thu, 31 Aug 2006 12:42:44 +0000
Subject: [PATCH] Add alternate Web Page view with dummy guards.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9593 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Web%20Page/view.xml          | 23 ++++++++++++++++++-
 .../portal_types/Web%20Page/web_view.xml      | 23 ++++++++++++++++++-
 bt5/erp5_web/bt/template_action_path_list     |  1 +
 3 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/view.xml
index 650ad940ab..b25a15ae27 100644
--- a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/view.xml
+++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/view.xml
@@ -30,7 +30,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -86,4 +88,23 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.Expression</string>
+          <string>Expression</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: False</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/web_view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/web_view.xml
index 2657c6a47b..4c1cf7244b 100644
--- a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/web_view.xml
+++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page/web_view.xml
@@ -30,7 +30,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -86,4 +88,23 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.Expression</string>
+          <string>Expression</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: True</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_web/bt/template_action_path_list b/bt5/erp5_web/bt/template_action_path_list
index 77d9d0e92e..8cb0e03777 100644
--- a/bt5/erp5_web/bt/template_action_path_list
+++ b/bt5/erp5_web/bt/template_action_path_list
@@ -7,6 +7,7 @@ Web Page | metadata
 Web Page | related
 Web Page | render
 Web Page | view
+Web Page | web_view
 Web Section | history
 Web Section | metadata
 Web Section | predicate
-- 
2.30.9