From cc9c3c008c0e525e40e76bb60ce2e65836edcb47 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Wed, 12 Sep 2007 16:36:43 +0000
Subject: [PATCH] Added local permission support for web page

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16313 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Web%20Page/local_permission.xml           | 89 +++++++++++++++++++
 bt5/erp5_dms/bt/revision                      |  2 +-
 bt5/erp5_dms/bt/template_action_path_list     |  3 +-
 3 files changed, 92 insertions(+), 2 deletions(-)
 create mode 100644 bt5/erp5_dms/ActionTemplateItem/portal_types/Web%20Page/local_permission.xml

diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Web%20Page/local_permission.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Web%20Page/local_permission.xml
new file mode 100644
index 0000000000..d47fe43980
--- /dev/null
+++ b/bt5/erp5_dms/ActionTemplateItem/portal_types/Web%20Page/local_permission.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.CMFCore.ActionInformation</string>
+          <string>ActionInformation</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>local_permission</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>5.5</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Local Permissions</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <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>string:${object_url}/Base_viewLocalPermissionList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index f4283ff317..dd9de55003 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-676
\ No newline at end of file
+677
\ No newline at end of file
diff --git a/bt5/erp5_dms/bt/template_action_path_list b/bt5/erp5_dms/bt/template_action_path_list
index c23965b10a..1f3cc40ad0 100644
--- a/bt5/erp5_dms/bt/template_action_path_list
+++ b/bt5/erp5_dms/bt/template_action_path_list
@@ -145,4 +145,5 @@ URL Crawler | crawl
 URL Crawler | crawled_content
 URL Crawler | history
 URL Crawler | metadata
-URL Crawler | view
\ No newline at end of file
+URL Crawler | view
+Web Page | local_permission
\ No newline at end of file
-- 
2.30.9