Commit 35fa7d57 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add a workaround for Zope 2.6.x, because Zope 2.6.x does not have App.Config.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@106 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64f03033
...@@ -188,7 +188,13 @@ def updateGlobals( this_module, global_hook, ...@@ -188,7 +188,13 @@ def updateGlobals( this_module, global_hook,
##################################################### #####################################################
import imp, os import imp, os
from App.config import getConfiguration
# Zope 2.6.x does not have App.Config
try:
from App.Config import getConfiguration
except ImportError:
pass
from Globals import InitializeClass from Globals import InitializeClass
from Accessor.Base import func_code from Accessor.Base import func_code
from Products.CMFCore.utils import manage_addContentForm, manage_addContent from Products.CMFCore.utils import manage_addContentForm, manage_addContent
......
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