documentation/5.0: Merge pull request #906 from plone/change-zope.app.component

GitHub <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: documentation
Branch: refs/heads/5.0
Date: 2017-07-17T09:42:49+02:00
Author: Gil Forcada Codinachs (gforcada) <[email protected]>
Commit: https://github.com/plone/documentation/commit/dbbe332e7e34ee7f36072721226b7aa5ee30e276

Merge pull request #906 from plone/change-zope.app.component-to-zope.component

fixed import of 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.