Commit bd3ec4cc authored by Julien Muchembled's avatar Julien Muchembled

Do not import from deprecated 'Globals' module

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39198 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b0607b7
......@@ -27,12 +27,10 @@
#
##############################################################################
from Products.CMFCore.utils import getToolByName
from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions
from Products.ERP5Type.Globals import InitializeClass, DTMLFile
from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5 import _dtmldir
......
......@@ -30,8 +30,8 @@
import zope.interface
from AccessControl import ClassSecurityInfo
from Globals import DTMLFile
from Products.ERP5Type import Permissions, interfaces
from Products.ERP5Type.Globals import DTMLFile
from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5 import _dtmldir
......
......@@ -31,7 +31,7 @@ from base64 import encodestring, decodestring
from urllib import quote, unquote
from DateTime import DateTime
from zLOG import LOG, PROBLEM
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
try:
from zope.interface import Interface
except ImportError:
......
......@@ -323,7 +323,7 @@ Code Generation in ERP5Type
If we look at the file Document/__init__.py, we can see some generated code::
# Hide internal implementation
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
from Demo import Demo as ERP5Demo
# Default constructor for Demo
# Can be overriden by adding a method addDemo in class Demo
......
......@@ -29,7 +29,7 @@ import zope.interface
from Products.ERP5Type.interfaces.property_translatable import IPropertyTranslatable
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
INTERNAL_TRANSLATION_DICT_NAME = '__translation_dict'
......
......@@ -15,7 +15,7 @@
""" Classes: ERP5RemoteUserManager
"""
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager,\
setSecurityManager, newSecurityManager
......
......@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo
from ZPublisher.HTTPRequest import FileUpload
from Globals import DTMLFile
from Products.ERP5Type.Globals import DTMLFile
from Products.ERP5Type.Accessor.Constant import PropertyGetter as \
ConstantGetter
from Products.ERP5Type.Tool.BaseTool import BaseTool
......
......@@ -17,7 +17,7 @@
""" Classes: ERP5GroupManager
"""
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
from AccessControl.SecurityManagement import newSecurityManager,\
getSecurityManager, setSecurityManager
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
......
......@@ -17,7 +17,7 @@
""" Classes: ERP5GroupManager
"""
from Globals import InitializeClass
from Products.ERP5Type.Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager,\
setSecurityManager, newSecurityManager
......
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