[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/security/browser/loginlogout.txt Repaired bad line endings

Jim Fulton jim at zope.com
Mon Feb 7 10:24:38 EST 2005


Log message for revision 29073:
  Repaired bad line endings
  

Changed:
  UU  Zope3/trunk/src/zope/app/security/browser/loginlogout.txt

-=-
Modified: Zope3/trunk/src/zope/app/security/browser/loginlogout.txt
===================================================================
--- Zope3/trunk/src/zope/app/security/browser/loginlogout.txt	2005-02-07 12:36:07 UTC (rev 29072)
+++ Zope3/trunk/src/zope/app/security/browser/loginlogout.txt	2005-02-07 15:24:38 UTC (rev 29073)
@@ -1,46 +1,46 @@
-====================
-Login/Logout Snippet
-====================
-
-The class LoginLogout:
-
-  >>> from zope.app.security.browser.auth import LoginLogout
-
-is used as a view to generate an HTML snippet suitable for logging in or
-logging out based on whether or not the current principal is authenticated.
-
-When the current principal is unauthenticated, it provides
-IUnauthenticatedPrincipal:
-
-  >>> from zope.app.security.interfaces import IUnauthenticatedPrincipal
-  >>> from zope.app.security.principalregistry import UnauthenticatedPrincipal
-  >>> anonymous = UnauthenticatedPrincipal('anon', '', '')
-  >>> IUnauthenticatedPrincipal.providedBy(anonymous)
-  True
-
-When LoginLogout is used for a request that has an unauthenticated principal,
-it provides the user with a link to 'Login':
-
-  >>> from zope.publisher.browser import TestRequest
-  >>> request = TestRequest()
-  >>> request.setPrincipal(anonymous)
-  >>> LoginLogout(None, request)()
-  u'<a href="@@login.html?nextURL=http%3A//127.0.0.1">[Login]</a>'
-
-When LoginLogout is used for a request that has an authenticated principal:
-
-  >>> from zope.security.interfaces import IPrincipal
-  >>> from zope.interface import implements
-  >>> class Bob:
-  ...     implements(IPrincipal)
-  ...     id = 'bob'
-  ...     title = description = ''
-  >>> bob = Bob()
-  >>> IUnauthenticatedPrincipal.providedBy(bob)
-  False
-  >>> request.setPrincipal(bob)
-
-it provides the user with a link to 'Logout':
-
-  >>> LoginLogout(None, request)()
-  u'<a href="@@logout.html?nextURL=http%3A//127.0.0.1">[Logout]</a>'
+====================
+Login/Logout Snippet
+====================
+
+The class LoginLogout:
+
+  >>> from zope.app.security.browser.auth import LoginLogout
+
+is used as a view to generate an HTML snippet suitable for logging in or
+logging out based on whether or not the current principal is authenticated.
+
+When the current principal is unauthenticated, it provides
+IUnauthenticatedPrincipal:
+
+  >>> from zope.app.security.interfaces import IUnauthenticatedPrincipal
+  >>> from zope.app.security.principalregistry import UnauthenticatedPrincipal
+  >>> anonymous = UnauthenticatedPrincipal('anon', '', '')
+  >>> IUnauthenticatedPrincipal.providedBy(anonymous)
+  True
+
+When LoginLogout is used for a request that has an unauthenticated principal,
+it provides the user with a link to 'Login':
+
+  >>> from zope.publisher.browser import TestRequest
+  >>> request = TestRequest()
+  >>> request.setPrincipal(anonymous)
+  >>> LoginLogout(None, request)()
+  u'<a href="@@login.html?nextURL=http%3A//127.0.0.1">[Login]</a>'
+
+When LoginLogout is used for a request that has an authenticated principal:
+
+  >>> from zope.security.interfaces import IPrincipal
+  >>> from zope.interface import implements
+  >>> class Bob:
+  ...     implements(IPrincipal)
+  ...     id = 'bob'
+  ...     title = description = ''
+  >>> bob = Bob()
+  >>> IUnauthenticatedPrincipal.providedBy(bob)
+  False
+  >>> request.setPrincipal(bob)
+
+it provides the user with a link to 'Logout':
+
+  >>> LoginLogout(None, request)()
+  u'<a href="@@logout.html?nextURL=http%3A//127.0.0.1">[Logout]</a>'


Property changes on: Zope3/trunk/src/zope/app/security/browser/loginlogout.txt
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope3-Checkins mailing list