[Checkins] SVN: zope.app.zapi/trunk/src/zope/app/zapi/ IAuthentication is now in zope.authentication.interfaces.
Yusei Tahara
yusei at domen.cx
Thu Apr 30 12:14:43 EDT 2009
Log message for revision 99619:
IAuthentication is now in zope.authentication.interfaces.
Changed:
U zope.app.zapi/trunk/src/zope/app/zapi/README.txt
U zope.app.zapi/trunk/src/zope/app/zapi/__init__.py
-=-
Modified: zope.app.zapi/trunk/src/zope/app/zapi/README.txt
===================================================================
--- zope.app.zapi/trunk/src/zope/app/zapi/README.txt 2009-04-30 16:00:52 UTC (rev 99618)
+++ zope.app.zapi/trunk/src/zope/app/zapi/README.txt 2009-04-30 16:14:43 UTC (rev 99619)
@@ -18,13 +18,13 @@
Traceback (most recent call last):
...
ComponentLookupError:
- (<InterfaceClass zope.app.security.interfaces.IAuthentication>, '')
+ (<InterfaceClass zope.authentication.interfaces.IAuthentication>, '')
But if we provide an authentication service:
>>> import zope.interface
- >>> from zope.app.security.interfaces import IAuthentication
+ >>> from zope.authentication.interfaces import IAuthentication
>>> class FakeAuthenticationUtility:
... zope.interface.implements(IAuthentication)
>>> fake = FakeAuthenticationUtility()
Modified: zope.app.zapi/trunk/src/zope/app/zapi/__init__.py
===================================================================
--- zope.app.zapi/trunk/src/zope/app/zapi/__init__.py 2009-04-30 16:00:52 UTC (rev 99618)
+++ zope.app.zapi/trunk/src/zope/app/zapi/__init__.py 2009-04-30 16:14:43 UTC (rev 99619)
@@ -34,7 +34,7 @@
name = getName
def principals():
- from zope.app.security.interfaces import IAuthentication
+ from zope.authentication.interfaces import IAuthentication
return getUtility(IAuthentication)
# BBB 2006/04/27 -- to be removed after 12 months
More information about the Checkins
mailing list