From 46f2a6ebd842901c6841d22dd6ad04b8dc42e13d Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Fri, 30 Oct 2009 07:14:33 +0000
Subject: [PATCH] This gadgets are actually returning wrapper static HTML code
 (with no calculation) not the real advertisement or documentation content.
 Real content is loaded in another asynchronous call to server. Make them
 synchronous (inline) to avoid useless asynchronous request to server.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30136 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_gadgets/erp5_advertisement.xml     |  2 +-
 .../portal_gadgets/erp5_documentation.xml     | 28 +++----------------
 bt5/erp5_knowledge_pad/bt/revision            |  2 +-
 3 files changed, 6 insertions(+), 26 deletions(-)

diff --git a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_advertisement.xml b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_advertisement.xml
index 3536f06883..552211dea8 100644
--- a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_advertisement.xml
+++ b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_advertisement.xml
@@ -91,7 +91,7 @@
         </item>
         <item>
             <key> <string>render_type</string> </key>
-            <value> <string>asynchronous</string> </value>
+            <value> <string>synchronous</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_documentation.xml b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_documentation.xml
index a10ab5dcfa..bfca6a661f 100644
--- a/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_documentation.xml
+++ b/bt5/erp5_knowledge_pad/PathTemplateItem/portal_gadgets/erp5_documentation.xml
@@ -13,38 +13,18 @@
             <key> <string>_Access_contents_information_Permission</string> </key>
             <value>
               <list>
-                <string>Assignor</string>
+                <string>Anonymous</string>
               </list>
             </value>
         </item>
         <item>
-            <key> <string>_Copy_or_Move_Permission</string> </key>
+            <key> <string>_View_Permission</string> </key>
             <value>
               <list>
-                <string>Owner</string>
+                <string>Anonymous</string>
               </list>
             </value>
         </item>
-        <item>
-            <key> <string>_Modify_portal_content_Permission</string> </key>
-            <value>
-              <tuple>
-                <string>Assignor</string>
-                <string>Manager</string>
-                <string>Owner</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>_View_Permission</string> </key>
-            <value>
-              <tuple>
-                <string>Assignor</string>
-                <string>Manager</string>
-                <string>Owner</string>
-              </tuple>
-            </value>
-        </item>
         <item>
             <key> <string>_local_properties</string> </key>
             <value>
@@ -111,7 +91,7 @@
         </item>
         <item>
             <key> <string>render_type</string> </key>
-            <value> <string>asynchronous</string> </value>
+            <value> <string>synchronous</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision
index 511fa83dfa..be6652a2ab 100644
--- a/bt5/erp5_knowledge_pad/bt/revision
+++ b/bt5/erp5_knowledge_pad/bt/revision
@@ -1 +1 @@
-414
\ No newline at end of file
+415
\ No newline at end of file
-- 
2.30.9