From 66f95da07694cd7c325f9bc0d67b638998145b82 Mon Sep 17 00:00:00 2001
From: Christophe Dumez <christophe@nexedi.com>
Date: Tue, 11 Jul 2006 11:50:53 +0000
Subject: [PATCH] - Removed "update local working copy" action because it made
 it too easy to revert changes committed by someone else without noticing -
 Renamed "update business template from SVN" id (was badly named)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8393 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../svn_update_working_copy.xml               |  89 ----------
 .../{update_svn_wc.xml => update_svn_bt.xml}  |   2 +-
 .../BusinessTemplate_doSvnUpdatewc.xml        | 161 ------------------
 bt5/erp5_forge/bt/provides_list               |   0
 bt5/erp5_forge/bt/revision                    |   2 +-
 bt5/erp5_forge/bt/template_action_path_list   |   3 +-
 6 files changed, 3 insertions(+), 254 deletions(-)
 delete mode 100644 bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/svn_update_working_copy.xml
 rename bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/{update_svn_wc.xml => update_svn_bt.xml} (97%)
 delete mode 100644 bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnUpdatewc.xml
 create mode 100644 bt5/erp5_forge/bt/provides_list

diff --git a/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/svn_update_working_copy.xml b/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/svn_update_working_copy.xml
deleted file mode 100644
index f9657cd2b0..0000000000
--- a/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/svn_update_working_copy.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?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_action</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>svn_update_working_copy</string> </value>
-        </item>
-        <item>
-            <key> <string>permissions</string> </key>
-            <value>
-              <tuple>
-<string></string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>priority</string> </key>
-            <value> <float>12.5</float> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Update local working copy from SVN</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}/BusinessTemplate_doSvnUpdatewc</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_wc.xml b/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_bt.xml
similarity index 97%
rename from bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_wc.xml
rename to bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_bt.xml
index 069d66a60a..9503993a4c 100644
--- a/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_wc.xml
+++ b/bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/update_svn_bt.xml
@@ -42,7 +42,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>update_svn_wc</string> </value>
+            <value> <string>update_svn_bt</string> </value>
         </item>
         <item>
             <key> <string>permissions</string> </key>
diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnUpdatewc.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnUpdatewc.xml
deleted file mode 100644
index da3a879904..0000000000
--- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnUpdatewc.xml
+++ /dev/null
@@ -1,161 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>Python_magic</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>Script_magic</string> </key>
-            <value> <int>3</int> </value>
-        </item>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </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.ERP5Subversion.SubversionClient import SubversionSSLTrustError, SubversionLoginError\n
-\n
-try:\n
-  context.getPortalObject()["portal_subversion"].updatewc(context)\n
-except SubversionSSLTrustError, error:\n
-  context.REQUEST.set(\'portal_status_message\', \'SSL Certificate was not recognized\')\n
-  return context.asContext(trust_dict = error.getTrustDict(), caller=\'updatewc\').BusinessTemplate_viewSvnSSLTrust()\n
-except SubversionLoginError, error1 :\n
-  context.REQUEST.set(\'portal_status_message\', \'Server needs authentication, no cookie found\')\n
-  return context.asContext(caller=\'updatewc\', realm = error1.getRealm(), username = context.getPortalObject()["portal_subversion"].getPreferredUsername()).BusinessTemplate_viewSvnLogin()\n
-\n
-context.REQUEST.set(\'portal_status_message\', \'Working Copy updated successfully.\')\n
-return context.REQUEST.RESPONSE.redirect(context.absolute_url() + \'/BusinessTemplate_viewSvnStatus\')\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_filepath</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string></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>0</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>Products.ERP5Subversion.SubversionClient</string>
-                            <string>SubversionSSLTrustError</string>
-                            <string>SubversionLoginError</string>
-                            <string>_getattr_</string>
-                            <string>_getitem_</string>
-                            <string>context</string>
-                            <string>error</string>
-                            <string>error1</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>BusinessTemplate_doSvnUpdatewc</string> </value>
-        </item>
-        <item>
-            <key> <string>warnings</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_forge/bt/provides_list b/bt5/erp5_forge/bt/provides_list
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision
index 7d37386284..31ff414b74 100644
--- a/bt5/erp5_forge/bt/revision
+++ b/bt5/erp5_forge/bt/revision
@@ -1 +1 @@
-45
\ No newline at end of file
+48
\ No newline at end of file
diff --git a/bt5/erp5_forge/bt/template_action_path_list b/bt5/erp5_forge/bt/template_action_path_list
index 633f3db4cb..9ac7c58cb6 100644
--- a/bt5/erp5_forge/bt/template_action_path_list
+++ b/bt5/erp5_forge/bt/template_action_path_list
@@ -9,8 +9,7 @@ Business Template | commit
 Business Template | svn_cleanup_locks
 Business Template | svn_conflicted_files
 Business Template | svn_unversioned_files
-Business Template | svn_update_working_copy
-Business Template | update_svn_wc
+Business Template | update_svn_bt
 Business Template | view_svn_repos_infos
 External Folder | history
 External Folder | metadata
-- 
2.30.9