From 798c3c95c36621648567a0d1243a5948bc1092f4 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 3 Aug 2007 13:40:13 +0000
Subject: [PATCH] Reordered actions and added guard for web section web view.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15459 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Web%20Section/new_default_page.xml        |  2 +-
 .../portal_types/Web%20Section/new_page.xml   |  2 +-
 .../portal_types/Web%20Section/web_view.xml   | 23 ++++++++++++++++++-
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_default_page.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_default_page.xml
index 86603ab328..0290d2bc62 100644
--- a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_default_page.xml
+++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_default_page.xml
@@ -54,7 +54,7 @@
         </item>
         <item>
             <key> <string>priority</string> </key>
-            <value> <float>1.0</float> </value>
+            <value> <float>101.0</float> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_page.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_page.xml
index 184cf28b21..4198a86327 100644
--- a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_page.xml
+++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/new_page.xml
@@ -54,7 +54,7 @@
         </item>
         <item>
             <key> <string>priority</string> </key>
-            <value> <float>1.0</float> </value>
+            <value> <float>100.0</float> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/web_view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/web_view.xml
index a2a68245b7..a0ea1fb22a 100644
--- a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/web_view.xml
+++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Section/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: object is not None and object.isWebMode()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
-- 
2.30.9