[Checkins] SVN: zope.app.authentication/trunk/ Use zope.site instead of zope.app.component.

Dan Korostelev nadako at gmail.com
Fri Mar 6 08:07:19 EST 2009


Log message for revision 97573:
  Use zope.site instead of zope.app.component.

Changed:
  U   zope.app.authentication/trunk/CHANGES.txt
  U   zope.app.authentication/trunk/setup.py
  U   zope.app.authentication/trunk/src/zope/app/authentication/README.txt
  U   zope.app.authentication/trunk/src/zope/app/authentication/authentication.py
  U   zope.app.authentication/trunk/src/zope/app/authentication/browser/groupfolder.txt
  U   zope.app.authentication/trunk/src/zope/app/authentication/session.py

-=-
Modified: zope.app.authentication/trunk/CHANGES.txt
===================================================================
--- zope.app.authentication/trunk/CHANGES.txt	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/CHANGES.txt	2009-03-06 13:07:19 UTC (rev 97573)
@@ -8,6 +8,8 @@
 * Split password manager functionality off to the new ``zope.password``
   package. Backward-compatibility imports are left in place.
 
+* Use ``zope.site`` instead of ``zope.app.component``.
+
 3.5.0a2 (2009-02-01)
 --------------------
 

Modified: zope.app.authentication/trunk/setup.py
===================================================================
--- zope.app.authentication/trunk/setup.py	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/setup.py	2009-03-06 13:07:19 UTC (rev 97573)
@@ -78,6 +78,7 @@
                         'zope.schema',
                         'zope.security',
                         'zope.session',
+                        'zope.site',
                         'zope.traversing',
                         'ZODB3',
                         ],

Modified: zope.app.authentication/trunk/src/zope/app/authentication/README.txt
===================================================================
--- zope.app.authentication/trunk/src/zope/app/authentication/README.txt	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/src/zope/app/authentication/README.txt	2009-03-06 13:07:19 UTC (rev 97573)
@@ -775,8 +775,8 @@
   ...
   ...     __parent__ = __name__ = None
   ...
-  >>> import zope.app.component.hooks
-  >>> site = zope.app.component.hooks.getSite()
+  >>> import zope.site.hooks
+  >>> site = zope.site.hooks.getSite()
   >>> plugin = LocatedQueriableAuthenticatorPlugin()
   >>> plugin.__parent__ = site
   >>> plugin.__name__ = 'localname'

Modified: zope.app.authentication/trunk/src/zope/app/authentication/authentication.py
===================================================================
--- zope.app.authentication/trunk/src/zope/app/authentication/authentication.py	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/src/zope/app/authentication/authentication.py	2009-03-06 13:07:19 UTC (rev 97573)
@@ -19,9 +19,9 @@
 from zope import component
 from zope.schema.interfaces import ISourceQueriables
 from zope.location.interfaces import ILocation
+from zope.site.next import queryNextUtility
 
 from zope.app.security.interfaces import IAuthentication, PrincipalLookupError
-from zope.app.component import queryNextUtility
 import zope.container.btree
 
 from zope.app.authentication import interfaces

Modified: zope.app.authentication/trunk/src/zope/app/authentication/browser/groupfolder.txt
===================================================================
--- zope.app.authentication/trunk/src/zope/app/authentication/browser/groupfolder.txt	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/src/zope/app/authentication/browser/groupfolder.txt	2009-03-06 13:07:19 UTC (rev 97573)
@@ -634,7 +634,7 @@
 affected principals.  First, we'll make the root folder the
 thread-local site:
 
-  >>> from zope.app.component.hooks import setSite
+  >>> from zope.site.hooks import setSite
   >>> setSite(getRootFolder())
 
 and we'll get the pluggable authentication utility:

Modified: zope.app.authentication/trunk/src/zope/app/authentication/session.py
===================================================================
--- zope.app.authentication/trunk/src/zope/app/authentication/session.py	2009-03-06 13:03:45 UTC (rev 97572)
+++ zope.app.authentication/trunk/src/zope/app/authentication/session.py	2009-03-06 13:07:19 UTC (rev 97573)
@@ -28,7 +28,7 @@
 from zope.session.interfaces import ISession
 from zope.traversing.browser.absoluteurl import absoluteURL
 
-from zope.app.component import hooks
+from zope.site import hooks
 from zope.container.contained import Contained
 from zope.app.authentication.interfaces import ICredentialsPlugin
 



More information about the Checkins mailing list