From 1764a55339744807d82a00b187f584c82e9ea082 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 23 Sep 2005 15:37:54 +0000
Subject: [PATCH] Use WorkflowMethod instead of WorkflowAction.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3844 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/File.py       | 5 ++---
 product/ERP5/Document/SupplyRule.py | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py
index fc4acfb433..b95919fcdc 100755
--- a/product/ERP5/Document/File.py
+++ b/product/ERP5/Document/File.py
@@ -28,8 +28,7 @@
 
 from AccessControl import ClassSecurityInfo
 
-from Products.CMFCore.WorkflowCore import WorkflowAction
-
+from Products.CMFCore.WorkflowCore import WorkflowMethod
 from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
 from Products.ERP5Type.Base import Base
 
@@ -135,7 +134,7 @@ or 'HTML'. Text can be automatically translated through the use of\
       Base._edit(self, **kw)
 
     security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
-    edit = WorkflowAction( _edit )
+    edit = WorkflowMethod( _edit )
 
     # Copy support needs to be implemented by ExtFile
     ################################
diff --git a/product/ERP5/Document/SupplyRule.py b/product/ERP5/Document/SupplyRule.py
index dd6fb510ed..6464998da4 100755
--- a/product/ERP5/Document/SupplyRule.py
+++ b/product/ERP5/Document/SupplyRule.py
@@ -29,8 +29,7 @@
 from Globals import InitializeClass, PersistentMapping
 from AccessControl import ClassSecurityInfo
 
-from Products.CMFCore.WorkflowCore import WorkflowAction
-
+from Products.CMFCore.WorkflowCore import WorkflowMethod
 from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
 from Products.ERP5Type.XMLMatrix import XMLMatrix
 from Products.ERP5.Document.MappedValue import MappedValue 
@@ -67,4 +66,4 @@ class SupplyRule(MappedValue, XMLMatrix):
       self.setPredicateValueList(self.getCategoryMembershipList(('taille','coloris'), base=1))
 
     security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
-    edit = WorkflowAction( _edit )
+    edit = WorkflowMethod( _edit )
-- 
2.30.9