Commit 1764a553 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use WorkflowMethod instead of WorkflowAction.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3844 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7e9e07d
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
from AccessControl import ClassSecurityInfo 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 import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Base import Base from Products.ERP5Type.Base import Base
...@@ -135,7 +134,7 @@ or 'HTML'. Text can be automatically translated through the use of\ ...@@ -135,7 +134,7 @@ or 'HTML'. Text can be automatically translated through the use of\
Base._edit(self, **kw) Base._edit(self, **kw)
security.declareProtected( Permissions.ModifyPortalContent, 'edit' ) security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
edit = WorkflowAction( _edit ) edit = WorkflowMethod( _edit )
# Copy support needs to be implemented by ExtFile # Copy support needs to be implemented by ExtFile
################################ ################################
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
from Globals import InitializeClass, PersistentMapping from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo 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 import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLMatrix import XMLMatrix from Products.ERP5Type.XMLMatrix import XMLMatrix
from Products.ERP5.Document.MappedValue import MappedValue from Products.ERP5.Document.MappedValue import MappedValue
...@@ -67,4 +66,4 @@ class SupplyRule(MappedValue, XMLMatrix): ...@@ -67,4 +66,4 @@ class SupplyRule(MappedValue, XMLMatrix):
self.setPredicateValueList(self.getCategoryMembershipList(('taille','coloris'), base=1)) self.setPredicateValueList(self.getCategoryMembershipList(('taille','coloris'), base=1))
security.declareProtected( Permissions.ModifyPortalContent, 'edit' ) security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
edit = WorkflowAction( _edit ) edit = WorkflowMethod( _edit )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment