Commit ca50d547 authored by 's avatar

- updated imports

parent 1da436a4
...@@ -28,7 +28,7 @@ from ZPublisher.BeforeTraverse import registerBeforeTraverse ...@@ -28,7 +28,7 @@ from ZPublisher.BeforeTraverse import registerBeforeTraverse
from ZPublisher.BeforeTraverse import unregisterBeforeTraverse from ZPublisher.BeforeTraverse import unregisterBeforeTraverse
# Hook up custom component architecture calls # Hook up custom component architecture calls
from zope.site.hooks import setHooks from zope.component.hooks import setHooks
setHooks() setHooks()
def findSite(obj, iface=ISite): def findSite(obj, iface=ISite):
......
...@@ -19,8 +19,8 @@ from Products.Five.component import enableSite, disableSite ...@@ -19,8 +19,8 @@ from Products.Five.component import enableSite, disableSite
from Products.Five.component.interfaces import IObjectManagerSite from Products.Five.component.interfaces import IObjectManagerSite
from zope.component.globalregistry import base from zope.component.globalregistry import base
from zope.component.hooks import setSite
from zope.component.persistentregistry import PersistentComponents from zope.component.persistentregistry import PersistentComponents
from zope.site.hooks import setSite
class ObjectManagerSiteView(BrowserView): class ObjectManagerSiteView(BrowserView):
......
...@@ -18,7 +18,7 @@ Load all of Five's configuration (this is a functional test): ...@@ -18,7 +18,7 @@ Load all of Five's configuration (this is a functional test):
Enable local component lookup hooks: Enable local component lookup hooks:
>>> from zope.site.hooks import setHooks >>> from zope.component.hooks import setHooks
>>> setHooks() >>> setHooks()
......
...@@ -29,8 +29,8 @@ def savestate(func): ...@@ -29,8 +29,8 @@ def savestate(func):
''' '''
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager from AccessControl.SecurityManagement import setSecurityManager
from zope.site.hooks import getSite from zope.component.hooks import getSite
from zope.site.hooks import setSite from zope.component.hooks import setSite
def wrapped_func(*args, **kw): def wrapped_func(*args, **kw):
sm, site = getSecurityManager(), getSite() sm, site = getSecurityManager(), getSite()
......
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