[Erp5-report] r29097 - in /erp5/trunk/products/ERP5Type: ./ patches/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 17 16:47:28 CEST 2009


Author: rafael
Date: Thu Sep 17 16:47:25 2009
New Revision: 29097

URL: http://svn.erp5.org?rev=29097&view=rev
Log:
Move StateChangeInfoPatch.py to patches folder, which is the place for keep external patches.


Added:
    erp5/trunk/products/ERP5Type/patches/StateChangeInfoPatch.py
      - copied unchanged from r28959, erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py
Removed:
    erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py
Modified:
    erp5/trunk/products/ERP5Type/ZopePatch.py
    erp5/trunk/products/ERP5Type/__init__.py

Removed: erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py?rev=29096&view=auto
==============================================================================
--- erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/StateChangeInfoPatch.py (removed)
@@ -1,48 +1,0 @@
-##############################################################################
-#
-# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
-#                    Sebastien Robin <seb at nexedi.com>
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-#
-##############################################################################
-
-from Products.DCWorkflow.Expression import StateChangeInfo
-from Products.PythonScripts.Utility import allow_class
-allow_class(StateChangeInfo)
-
-def setWorkflowVariable(self, object, workflow_id='edit_workflow',**kw):
-  """
-    Allows to go through security checking and let a
-    script allows to modify a workflow variable
-  """
-  workflow_history = object.workflow_history
-  for workflow in workflow_history.keys():
-    if len(workflow_history[workflow])!= 0 and workflow==workflow_id:
-      last_status = workflow_history[workflow][-1]
-      for variable in kw.keys():
-        if last_status.has_key(variable):
-          last_status[variable]=kw[variable]
-
-
-StateChangeInfo.setWorkflowVariable = setWorkflowVariable
-

Modified: erp5/trunk/products/ERP5Type/ZopePatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ZopePatch.py?rev=29097&r1=29096&r2=29097&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ZopePatch.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ZopePatch.py [utf8] Thu Sep 17 16:47:25 2009
@@ -55,6 +55,7 @@
 from Products.ERP5Type.patches import MailTemplates
 from Products.ERP5Type.patches import http_server
 from Products.ERP5Type.patches import memcache_client
+from Products.ERP5Type.patches import StateChangeInfoPatch
 
 # These symbols are required for backward compatibility
 from Products.ERP5Type.patches.PropertyManager import ERP5PropertyManager

Modified: erp5/trunk/products/ERP5Type/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/__init__.py?rev=29097&r1=29096&r2=29097&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/__init__.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/__init__.py [utf8] Thu Sep 17 16:47:25 2009
@@ -45,7 +45,7 @@
                                   permissions_module=Permissions,
                                   is_erp5_type=1 )
 
-import Interface, PropertySheet, ZopePatch, StateChangeInfoPatch, CMFCorePatch
+import Interface, PropertySheet, ZopePatch, CMFCorePatch
 import interfaces
 
 import Products.Localizer # So that we make sure Globals.get_request is available




More information about the Erp5-report mailing list