Commit 673f5282 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not create yet another class.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a7bc482
...@@ -12,14 +12,13 @@ ...@@ -12,14 +12,13 @@
# #
############################################################################## ##############################################################################
from Products.CMFCore import ActionInformation from Products.CMFCore.ActionInformation import ActionInformation
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.CMFCore.Expression import Expression from Products.CMFCore.Expression import Expression
from types import StringType from types import StringType
ActionInformation.oldActionInformation = ActionInformation.ActionInformation #class PatchedActionInformation(ActionInformation.oldActionInformation):
if 1:
class PatchedActionInformation(ActionInformation.oldActionInformation):
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -144,4 +143,14 @@ class PatchedActionInformation(ActionInformation.oldActionInformation): ...@@ -144,4 +143,14 @@ class PatchedActionInformation(ActionInformation.oldActionInformation):
, optional=self.getOption() , optional=self.getOption()
) )
ActionInformation.ActionInformation = PatchedActionInformation #ActionInformation.ActionInformation = PatchedActionInformation
ActionInformation.__init__ = __init__
ActionInformation.getAction = getAction
ActionInformation._getIconObject = _getIconObject
ActionInformation.getIconExpression = getIconExpression
ActionInformation.setIconExpression = setIconExpression
ActionInformation.getOption = getOption
ActionInformation.getPriority = getPriority
ActionInformation.clone = clone
PatchedActionInformation = ActionInformation
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