From 1973c9f1532dd00bb7f2fd2f9e805c61997cbc22 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Mon, 22 Feb 2010 09:16:55 +0000
Subject: [PATCH] Remove duplication of "Attach File" and respective actions.
 Be consistent with action name.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32912 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...ribute_content.xml => contribute_file.xml} |   8 +-
 .../Organisation/contribute_file.xml          | 103 ---------
 .../portal_types/Person/contribute_file.xml   | 103 ---------
 .../erp5_dms/Entity_contributeContent.xml     | 218 ------------------
 .../Entity_viewContributeFileDialog.xml       | 152 ------------
 .../your_classification.xml                   | 124 ----------
 .../your_file.xml                             |  99 --------
 bt5/erp5_dms/bt/revision                      |   2 +-
 bt5/erp5_dms/bt/template_action_path_list     |   4 +-
 9 files changed, 7 insertions(+), 806 deletions(-)
 rename bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/{contribute_content.xml => contribute_file.xml} (92%)
 delete mode 100644 bt5/erp5_dms/ActionTemplateItem/portal_types/Organisation/contribute_file.xml
 delete mode 100644 bt5/erp5_dms/ActionTemplateItem/portal_types/Person/contribute_file.xml
 delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_contributeContent.xml
 delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog.xml
 delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_classification.xml
 delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_file.xml

diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_content.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_file.xml
similarity index 92%
rename from bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_content.xml
rename to bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_file.xml
index 5d2ca9ef31..e96c8a88c4 100644
--- a/bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_content.xml
+++ b/bt5/erp5_dms/ActionTemplateItem/portal_types/Document%20Module/contribute_file.xml
@@ -33,7 +33,9 @@
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>icon</string> </key>
@@ -41,7 +43,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>contribute_content</string> </value>
+            <value> <string>contribute_file</string> </value>
         </item>
         <item>
             <key> <string>permissions</string> </key>
@@ -57,7 +59,7 @@
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>Contribute Content</string> </value>
+            <value> <string>Contribute File</string> </value>
         </item>
         <item>
             <key> <string>visible</string> </key>
diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Organisation/contribute_file.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Organisation/contribute_file.xml
deleted file mode 100644
index b4400b1f0a..0000000000
--- a/bt5/erp5_dms/ActionTemplateItem/portal_types/Organisation/contribute_file.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </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_exchange</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_exchange</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> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>contribute_file</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>50.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Contribute</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>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Entity_viewContributeFileDialog</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: portal.Base_checkPermission(\'document_module\', \'Add portal content\') and portal.Base_checkPermission(\'image_module\', \'Add portal content\')</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Person/contribute_file.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Person/contribute_file.xml
deleted file mode 100644
index b4400b1f0a..0000000000
--- a/bt5/erp5_dms/ActionTemplateItem/portal_types/Person/contribute_file.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
-        <tuple/>
-      </tuple>
-    </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_exchange</string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>category</string> </key>
-            <value> <string>object_exchange</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> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>icon</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>contribute_file</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>50.0</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Contribute</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>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/Entity_viewContributeFileDialog</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <global name="Expression" module="Products.CMFCore.Expression"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>text</string> </key>
-            <value> <string>python: portal.Base_checkPermission(\'document_module\', \'Add portal content\') and portal.Base_checkPermission(\'image_module\', \'Add portal content\')</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_contributeContent.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_contributeContent.xml
deleted file mode 100644
index 29178b1aee..0000000000
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_contributeContent.xml
+++ /dev/null
@@ -1,218 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </value>
-        </item>
-        <item>
-            <key> <string>_bind_names</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>_asgns</string> </key>
-                        <value>
-                          <dictionary>
-                            <item>
-                                <key> <string>name_container</string> </key>
-                                <value> <string>container</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_context</string> </key>
-                                <value> <string>context</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_m_self</string> </key>
-                                <value> <string>script</string> </value>
-                            </item>
-                            <item>
-                                <key> <string>name_subpath</string> </key>
-                                <value> <string>traverse_subpath</string> </value>
-                            </item>
-                          </dictionary>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>_body</string> </key>
-            <value> <string>from Products.ERP5.Document.Document import ConversionError\n
-from xmlrpclib import Fault\n
-from socket import error as SocketError\n
-\n
-kw = {}\n
-kw[\'classification\'] = classification\n
-kw[\'file\'] = file\n
-\n
-# We want to discover metadata synchronously\n
-kw[\'discover_metadata\'] = 0\n
-\n
-editable_mode = 1\n
-filename = getattr(file, \'filename\', None)\n
-# try to ingest file\n
-failure = 0\n
-new_content = None\n
-merged_content = None\n
-\n
-# This must works always.\n
-new_content = context.portal_contributions.newContent(**kw)\n
-\n
-# Append the context document into follow_up.\n
-follow_up_list = new_content.getFollowUpValueList()\n
-follow_up_list.append(context)\n
-new_content.setFollowUpValueList([i.getRelativeUrl() for i in follow_up_list])\n
-\n
-try:\n
-  new_content.processFile()\n
-  merged_content = new_content.Document_convertToBaseFormatAndDiscoverMetadata(file_name=filename)\n
-except ConversionError, Fault:\n
-  # there are errors during ingestion content\n
-  failure = 1\n
-  msg = \'Sorry, there was a problem during conversion of your document.\'\n
-except SocketError:\n
-  # conversion server is down\n
-  failure = 1\n
-  msg = \'Sorry, the conversion server is down. Please try again later.\'\n
-except (TypeError, KeyError, AttributeError):\n
-  # there\'s an unknow  error occured\n
-  failure = 1\n
-  msg = \'Sorry, unknow error occured.\'\n
-\n
-target = None\n
-if merged_content is not None:\n
-  target = merged_content\n
-elif new_content is not None:\n
-  target = new_content\n
-else:\n
-  target = context\n
-\n
-if failure:\n
-  msg = context.Base_translateString(msg)\n
-  return target.Base_redirect(\'view\',\n
-                              keep_items=dict(portal_status_message=msg,\n
-                                              editable_mode=0))\n
-# successful ingestion, show appropriate message\n
-if merged_content is not None and merged_content is not new_content:\n
-  msg = context.Base_translateString(\'Document successfully updated.\')\n
-  target = merged_content\n
-else:\n
-  msg = context.Base_translateString(\'Document successfully uploaded.\')\n
-  target = new_content\n
-\n
-return target.Base_redirect(\'view\',\n
-                            keep_items=dict(portal_status_message=msg, \n
-                                            editable_mode=editable_mode))\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string>file, classification, **kwargs</string> </value>
-        </item>
-        <item>
-            <key> <string>errors</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_code</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>co_argcount</string> </key>
-                        <value> <int>2</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>file</string>
-                            <string>classification</string>
-                            <string>kwargs</string>
-                            <string>Products.ERP5.Document.Document</string>
-                            <string>ConversionError</string>
-                            <string>xmlrpclib</string>
-                            <string>Fault</string>
-                            <string>socket</string>
-                            <string>error</string>
-                            <string>SocketError</string>
-                            <string>kw</string>
-                            <string>_write_</string>
-                            <string>editable_mode</string>
-                            <string>getattr</string>
-                            <string>None</string>
-                            <string>filename</string>
-                            <string>failure</string>
-                            <string>new_content</string>
-                            <string>merged_content</string>
-                            <string>_apply_</string>
-                            <string>_getattr_</string>
-                            <string>context</string>
-                            <string>follow_up_list</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>_getiter_</string>
-                            <string>i</string>
-                            <string>msg</string>
-                            <string>TypeError</string>
-                            <string>KeyError</string>
-                            <string>AttributeError</string>
-                            <string>target</string>
-                            <string>dict</string>
-                          </tuple>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_defaults</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Entity_contributeContent</string> </value>
-        </item>
-        <item>
-            <key> <string>warnings</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog.xml
deleted file mode 100644
index 46583c5111..0000000000
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog.xml
+++ /dev/null
@@ -1,152 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ERP5Form" module="Products.ERP5Form.Form"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>_bind_names</string> </key>
-            <value>
-              <object>
-                <klass>
-                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
-                </klass>
-                <tuple/>
-                <state>
-                  <dictionary>
-                    <item>
-                        <key> <string>_asgns</string> </key>
-                        <value>
-                          <dictionary/>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>_objects</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>action</string> </key>
-            <value> <string>Entity_contributeContent</string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>edit_order</string> </key>
-            <value>
-              <list/>
-            </value>
-        </item>
-        <item>
-            <key> <string>encoding</string> </key>
-            <value> <string>UTF-8</string> </value>
-        </item>
-        <item>
-            <key> <string>enctype</string> </key>
-            <value> <string>multipart/form-data</string> </value>
-        </item>
-        <item>
-            <key> <string>group_list</string> </key>
-            <value>
-              <list>
-                <string>left</string>
-                <string>right</string>
-                <string>center</string>
-                <string>bottom</string>
-                <string>hidden</string>
-              </list>
-            </value>
-        </item>
-        <item>
-            <key> <string>groups</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>bottom</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>center</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>hidden</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>left</string> </key>
-                    <value>
-                      <list>
-                        <string>your_classification</string>
-                        <string>your_file</string>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>right</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Entity_viewContributeFileDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>method</string> </key>
-            <value> <string>POST</string> </value>
-        </item>
-        <item>
-            <key> <string>name</string> </key>
-            <value> <string>Entity_viewContributeFileDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>pt</string> </key>
-            <value> <string>form_dialog</string> </value>
-        </item>
-        <item>
-            <key> <string>row_length</string> </key>
-            <value> <int>4</int> </value>
-        </item>
-        <item>
-            <key> <string>stored_encoding</string> </key>
-            <value> <string>UTF-8</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Contribute File</string> </value>
-        </item>
-        <item>
-            <key> <string>unicode_mode</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>update_action</string> </key>
-            <value> <string></string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_classification.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_classification.xml
deleted file mode 100644
index e63601258c..0000000000
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_classification.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>delegated_list</string> </key>
-            <value>
-              <list>
-                <string>extra</string>
-              </list>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>your_classification</string> </value>
-        </item>
-        <item>
-            <key> <string>message_values</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>external_validator_failed</string> </key>
-                    <value> <string>The input failed the external validator.</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>overrides</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>tales</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>items</string> </key>
-                    <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>values</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>extra</string> </key>
-                    <value> <string>style="margin-bottom:10px;"</string> </value>
-                </item>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string>my_classification</string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string>Document_viewFieldLibrary</string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string>Click to edit the target</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.Formulator.TALESField</string>
-          <string>TALESMethod</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>_text</string> </key>
-            <value> <string>python:tuple(here.portal_categories.classification.getCategoryChildLogicalPathItemList())</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_file.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_file.xml
deleted file mode 100644
index 1f48d6d5f5..0000000000
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Entity_viewContributeFileDialog/your_file.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>delegated_list</string> </key>
-            <value>
-              <list>
-                <string>title</string>
-              </list>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>your_file</string> </value>
-        </item>
-        <item>
-            <key> <string>message_values</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>external_validator_failed</string> </key>
-                    <value> <string>The input failed the external validator.</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>overrides</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>tales</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>values</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string>my_file</string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string>Document_viewFieldLibrary</string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string>Click to edit the target</string> </value>
-                </item>
-                <item>
-                    <key> <string>title</string> </key>
-                    <value> <string>File to upload</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index 20657575e2..c9d864be1c 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-1065
\ No newline at end of file
+1066
\ 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 d897853e1a..a9e9cf669a 100644
--- a/bt5/erp5_dms/bt/template_action_path_list
+++ b/bt5/erp5_dms/bt/template_action_path_list
@@ -1,7 +1,7 @@
 Document Ingestion Message | view
 Document Ingestion Module | list
 Document Module | advanced_search
-Document Module | contribute_content
+Document Module | contribute_file
 Document Module | list_ui
 Document Module | search
 Document Module | sort_on
@@ -50,7 +50,6 @@ Image | jump_to_successor
 Image | jump_to_wiki_predecessor
 Image | local_permission
 Image | related_document
-Organisation | contribute_file
 PDF | download
 PDF | file_upload
 PDF | html_view
@@ -65,7 +64,6 @@ PDF | local_permission
 PDF | related_document
 PDF | view
 PDF | web_view
-Person | contribute_file
 Presentation | convert
 Presentation | create_snapshot
 Presentation | download
-- 
2.30.9