[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/authentication/ -
Swap deprecated PrincipalInformation with
Dominik Huber
dominik.huber at projekt01.ch
Thu Jul 21 05:09:36 EDT 2005
Log message for revision 37357:
- Swap deprecated PrincipalInformation with
InternalPrincipal within principalfolder
doctest.
- Typo
Changed:
U Zope3/trunk/src/zope/app/authentication/README.txt
U Zope3/trunk/src/zope/app/authentication/principalfolder.txt
-=-
Modified: Zope3/trunk/src/zope/app/authentication/README.txt
===================================================================
--- Zope3/trunk/src/zope/app/authentication/README.txt 2005-07-21 00:05:08 UTC (rev 37356)
+++ Zope3/trunk/src/zope/app/authentication/README.txt 2005-07-21 09:09:36 UTC (rev 37357)
@@ -33,7 +33,7 @@
If an authenticator succeeds in authenticating a set of credentials, the PAU
uses the authenticator to create a principal corresponding to the credentials.
-The authenticator notifies subscribers if an authenticated princiapl is created.
+The authenticator notifies subscribers if an authenticated principal is created.
Subscribers are responsible for adding data, especially groups, to the
principal. Typically, if a subscriber adds data, it should also add
corresponding interface declarations.
Modified: Zope3/trunk/src/zope/app/authentication/principalfolder.txt
===================================================================
--- Zope3/trunk/src/zope/app/authentication/principalfolder.txt 2005-07-21 00:05:08 UTC (rev 37356)
+++ Zope3/trunk/src/zope/app/authentication/principalfolder.txt 2005-07-21 09:09:36 UTC (rev 37357)
@@ -3,12 +3,12 @@
================
Principal folders contain principal-information objects that contain principal
-information. We create principal information using the `PrincipalInformation`
+information. We create an internal principal using the `InternalPrincipal`
class:
- >>> from zope.app.authentication.principalfolder import PrincipalInformation
- >>> p1 = PrincipalInformation('login1', '123', "Principal 1")
- >>> p2 = PrincipalInformation('login2', '456', "The Other One")
+ >>> from zope.app.authentication.principalfolder import InternalPrincipal
+ >>> p1 = InternalPrincipal('login1', '123', "Principal 1")
+ >>> p2 = InternalPrincipal('login2', '456', "The Other One")
and add then in map fashion to a principal folder:
@@ -68,7 +68,7 @@
>>> for i in range(20):
... i = str(i)
- ... p = PrincipalInformation('l'+i, i, "Dude "+i)
+ ... p = InternalPrincipal('l'+i, i, "Dude "+i)
... principals[i] = p
>>> pprint(list(principals.search({'search': 'D'})))
More information about the Zope3-Checkins
mailing list