From a622069ec195a9b43396f5c6363eb573b5358fce Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 2 Apr 2007 23:14:42 +0000 Subject: [PATCH] Fix undefined symbols. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13869 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/CMFCoreUtils.py | 4 +++- product/ERP5Type/patches/CMFMailIn.py | 1 + product/ERP5Type/patches/DCWorkflow.py | 3 ++- product/ERP5Type/patches/Transaction.py | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/patches/CMFCoreUtils.py b/product/ERP5Type/patches/CMFCoreUtils.py index b15fe7cf96..03e8c9bbe6 100644 --- a/product/ERP5Type/patches/CMFCoreUtils.py +++ b/product/ERP5Type/patches/CMFCoreUtils.py @@ -12,7 +12,9 @@ # ############################################################################## -from Products.CMFCore.utils import * +from warnings import warn +from Products.CMFCore.exceptions import AccessControl_Unauthorized, NotFound +from Products.CMFCore.utils import getActionContext from Products.CMFCore.utils import _verifyActionPermissions from Products.CMFCore.Expression import getExprContext from Products.CMFCore import PortalContent diff --git a/product/ERP5Type/patches/CMFMailIn.py b/product/ERP5Type/patches/CMFMailIn.py index f003131c4c..9e2eebc512 100644 --- a/product/ERP5Type/patches/CMFMailIn.py +++ b/product/ERP5Type/patches/CMFMailIn.py @@ -17,6 +17,7 @@ import email from email.Header import decode_header from email.Utils import parseaddr from ZODB.POSException import ConflictError +from zLOG import LOG import traceback import StringIO diff --git a/product/ERP5Type/patches/DCWorkflow.py b/product/ERP5Type/patches/DCWorkflow.py index a6a7dc8b4d..028a4493c6 100644 --- a/product/ERP5Type/patches/DCWorkflow.py +++ b/product/ERP5Type/patches/DCWorkflow.py @@ -20,7 +20,8 @@ from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition, StateChangeInfo from Products.DCWorkflow.DCWorkflow import ObjectDeleted, ObjectMoved, aq_parent, aq_inner from Products.DCWorkflow import DCWorkflow from Products.DCWorkflow.Transitions import TRIGGER_WORKFLOW_METHOD, TransitionDefinition -from AccessControl import getSecurityManager, ClassSecurityInfo, ModuleSecurityInfo +from AccessControl import getSecurityManager, ClassSecurityInfo, \ + ModuleSecurityInfo, Unauthorized from Products.CMFCore.utils import getToolByName from Products.CMFCore.WorkflowCore import WorkflowException from Products.CMFCore.utils import _getAuthenticatedUser diff --git a/product/ERP5Type/patches/Transaction.py b/product/ERP5Type/patches/Transaction.py index ee5ab632da..a41fb8ca26 100644 --- a/product/ERP5Type/patches/Transaction.py +++ b/product/ERP5Type/patches/Transaction.py @@ -18,8 +18,10 @@ import sys # Adding commit_prepare to the zodb transaction try: from ZODB import Transaction, POSException + from zLOG import LOG, ERROR hosed = Transaction.hosed + hosed_msg = Transaction.hosed_msg free_transaction = Transaction.free_transaction jar_cmp = Transaction.jar_cmp -- 2.30.9