documentation/change-zope.app.component-to-zope.component: fixed import of getSite

GitHub <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: documentation
Branch: refs/heads/change-zope.app.component-to-zope.component
Date: 2017-07-16T21:31:46-05:00
Author: David Bain (pigeonflight) <[email protected]>
Commit: https://github.com/plone/documentation/commit/b173e3bd7cda0aed4614f3b4aa402669b4893bd9

fixed import of getSite

changed occurences of: 
      from zope.app.component.hooks import getSite

to:
  
    from zope.component.hooks import getSite

Files changed:
M develop/plone/sessions/login.rst

diff --git a/develop/plone/sessions/login.rst b/develop/plone/sessions/login.rst
index cac77c3d..f1cdd6f3 100644
--- a/develop/plone/sessions/login.rst
+++ b/develop/plone/sessions/login.rst
@@ -170,7 +170,7 @@ a custom folder after he/she logs in (overrides standard Plone login behavior)
     from AccessControl import getSecurityManager
     from zope.interface import Interface
     from zope.component import getUtility
-    from zope.app.component.hooks import getSite
+    from zope.component.hooks import getSite
     from zope.globalrequest import getRequest
 
     # CMFCore imports
@@ -328,7 +328,7 @@ PAS cache settings
 Here is a short view snippet to set PAS cache state::
 
     from Products.Five.browser import BrowserView
-    from zope.app.component.hooks import getSite
+    from zope.component.hooks import getSite
 
     from Products.CMFCore.utils import getToolByName
 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.