From 8d504a13f736510bd3ebab8c8647aca296fa1d5f Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 14 Jan 2009 15:11:18 +0000
Subject: [PATCH] Disable deferred report if erp5_deferred_style is not
 install.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25107 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../your_deferred_style.xml                   | 20 ++++++++++++++++++-
 product/ERP5/bootstrap/erp5_core/bt/revision  |  2 +-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDialogFieldLibrary/your_deferred_style.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDialogFieldLibrary/your_deferred_style.xml
index 2586a2bf37..a5b6ccf15c 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDialogFieldLibrary/your_deferred_style.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewDialogFieldLibrary/your_deferred_style.xml
@@ -97,7 +97,9 @@
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>external_validator</string> </key>
@@ -168,4 +170,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: \'Deferred\' in here.portal_skins.getSkinSelections()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 67a2f2abea..e4b9b2cc2d 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-1062
\ No newline at end of file
+1064
\ No newline at end of file
-- 
2.30.9