[Erp5-report] r38398 nicolas - in /erp5/trunk/bt5/erp5_dms: ActionTemplateItem/portal_types...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 15 19:00:18 CEST 2010


Author: nicolas
Date: Wed Sep 15 19:00:15 2010
New Revision: 38398

URL: http://svn.erp5.org?rev=38398&view=rev
Log:
Add update_content_from_url action on following portal_types:
Drawing
PDF
Presentation
Spreadsheet
Text

controlled by isUpdatable() which is disabled by default for all Documents.

Added:
    erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/update_content_from_url.xml
    erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/PDF/update_content_from_url.xml
    erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/update_content_from_url.xml
    erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/update_content_from_url.xml
    erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/update_content_from_url.xml
Modified:
    erp5/trunk/bt5/erp5_dms/bt/template_action_path_list

Added: erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/update_content_from_url.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/update_content_from_url.xml?rev=38398&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/update_content_from_url.xml (added)
+++ erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Drawing/update_content_from_url.xml [utf8] Wed Sep 15 19:00:15 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>update_content_from_url</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Update Content From URL</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Document_viewUpdateContentFromURLDialog</string> </value>
+        </item>
+      </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>here/isUpdatable</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/PDF/update_content_from_url.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/PDF/update_content_from_url.xml?rev=38398&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/PDF/update_content_from_url.xml (added)
+++ erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/PDF/update_content_from_url.xml [utf8] Wed Sep 15 19:00:15 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>update_content_from_url</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Update Content From URL</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Document_viewUpdateContentFromURLDialog</string> </value>
+        </item>
+      </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>here/isUpdatable</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/update_content_from_url.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/update_content_from_url.xml?rev=38398&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/update_content_from_url.xml (added)
+++ erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Presentation/update_content_from_url.xml [utf8] Wed Sep 15 19:00:15 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>update_content_from_url</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Update Content From URL</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Document_viewUpdateContentFromURLDialog</string> </value>
+        </item>
+      </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>here/isUpdatable</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/update_content_from_url.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/update_content_from_url.xml?rev=38398&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/update_content_from_url.xml (added)
+++ erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Spreadsheet/update_content_from_url.xml [utf8] Wed Sep 15 19:00:15 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>update_content_from_url</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Update Content From URL</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Document_viewUpdateContentFromURLDialog</string> </value>
+        </item>
+      </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>here/isUpdatable</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/update_content_from_url.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/update_content_from_url.xml?rev=38398&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/update_content_from_url.xml (added)
+++ erp5/trunk/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/update_content_from_url.xml [utf8] Wed Sep 15 19:00:15 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_action</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>update_content_from_url</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>Modify portal content</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>10.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Update Content From URL</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Document_viewUpdateContentFromURLDialog</string> </value>
+        </item>
+      </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>here/isUpdatable</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_dms/bt/template_action_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dms/bt/template_action_path_list?rev=38398&r1=38397&r2=38398&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dms/bt/template_action_path_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_dms/bt/template_action_path_list [utf8] Wed Sep 15 19:00:15 2010
@@ -21,6 +21,7 @@ Drawing | jump_to_wiki_successor
 Drawing | local_permission
 Drawing | print
 Drawing | related_document
+Drawing | update_content_from_url
 Drawing | view
 Drawing | web_view
 External Source Module | view
@@ -59,6 +60,7 @@ PDF | jump_to_wiki_predecessor
 PDF | jump_to_wiki_successor
 PDF | local_permission
 PDF | related_document
+PDF | update_content_from_url
 PDF | view
 PDF | web_view
 Presentation | create_snapshot
@@ -77,6 +79,7 @@ Presentation | jump_to_wiki_successor
 Presentation | local_permission
 Presentation | print
 Presentation | related_document
+Presentation | update_content_from_url
 Presentation | view
 Presentation | web_view
 RSS Feed | crawl
@@ -98,6 +101,7 @@ Spreadsheet | jump_to_wiki_successor
 Spreadsheet | local_permission
 Spreadsheet | print
 Spreadsheet | related_document
+Spreadsheet | update_content_from_url
 Spreadsheet | view
 Spreadsheet | web_view
 System Preference | dms_preference
@@ -118,6 +122,7 @@ Text | local_permission
 Text | print
 Text | related_document
 Text | suggest_reference
+Text | update_content_from_url
 Text | view
 Text | web_view
 URL Crawler | crawl




More information about the Erp5-report mailing list