From 673f5282bac22651be86ae9284210b467a52051c Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 7 Feb 2006 18:52:41 +0000
Subject: [PATCH] Do not create yet another class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5588 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/ActionInformation.py | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/product/ERP5Type/patches/ActionInformation.py b/product/ERP5Type/patches/ActionInformation.py
index 92b948e034..e0d243d58f 100755
--- a/product/ERP5Type/patches/ActionInformation.py
+++ b/product/ERP5Type/patches/ActionInformation.py
@@ -12,14 +12,13 @@
 #
 ##############################################################################
 
-from Products.CMFCore import ActionInformation
+from Products.CMFCore.ActionInformation import ActionInformation
 from AccessControl import ClassSecurityInfo
 from Products.CMFCore.Expression import Expression
 from types import StringType
 
-ActionInformation.oldActionInformation = ActionInformation.ActionInformation
-
-class PatchedActionInformation(ActionInformation.oldActionInformation):
+#class PatchedActionInformation(ActionInformation.oldActionInformation):
+if 1:
 
     security = ClassSecurityInfo()
 
@@ -144,4 +143,14 @@ class PatchedActionInformation(ActionInformation.oldActionInformation):
                              , 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
-- 
2.30.9