From bb75ecd371f23eb5023cb7a6a71bc95b6191e0f0 Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@nexedi.com>
Date: Wed, 20 Jan 2016 16:08:13 +0000
Subject: [PATCH] copy some Web Page actions to Web Illustration

erp5_web_ung_core: view, view_editor, web_view
erp5_officejs: jio_view
---
 .../Web%20Illustration/jio_view.xml           |  2 +-
 .../portal_types/Web%20Illustration/view.xml  | 17 +--------------
 .../Web%20Illustration/view_editor.xml        | 21 ++-----------------
 .../Web%20Illustration/web_view.xml           | 19 +++++++++++++++--
 4 files changed, 21 insertions(+), 38 deletions(-)

diff --git a/bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Illustration/jio_view.xml b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Illustration/jio_view.xml
index ae94f68af6..8995325932 100644
--- a/bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Illustration/jio_view.xml
+++ b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Illustration/jio_view.xml
@@ -56,7 +56,7 @@
         </item>
         <item>
             <key> <string>priority</string> </key>
-            <value> <float>1000.0</float> </value>
+            <value> <float>35.0</float> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view.xml b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view.xml
index e5b173e23c..c57fbdc88d 100644
--- a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view.xml
+++ b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view.xml
@@ -26,9 +26,7 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -80,17 +78,4 @@
       </dictionary>
     </pickle>
   </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: object is not None and not object.isWebMode()</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view_editor.xml b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view_editor.xml
index e31a34609e..51b648062c 100644
--- a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view_editor.xml
+++ b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/view_editor.xml
@@ -26,15 +26,11 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value>
-              <none/>
-            </value>
+            <value> <string>python: object is not None and not object.isWebMode()</string> </value>
         </item>
         <item>
             <key> <string>icon</string> </key>
@@ -80,17 +76,4 @@
       </dictionary>
     </pickle>
   </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="Expression" module="Products.CMFCore.Expression"/>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: object is not None and not object.isWebMode()</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/web_view.xml b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/web_view.xml
index 55097915b9..12b0febc52 100644
--- a/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/web_view.xml
+++ b/bt5/erp5_web_ung_core/ActionTemplateItem/portal_types/Web%20Illustration/web_view.xml
@@ -26,7 +26,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>
@@ -52,7 +54,7 @@
         </item>
         <item>
             <key> <string>priority</string> </key>
-            <value> <float>2.0</float> </value>
+            <value> <float>0.9</float> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -78,4 +80,17 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python:object is not None and object.isWebMode()  and not object.isEditableMode()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
-- 
2.30.9