[Zope3-checkins] CVS: Zope3/src/zope/app/browser - auth.py:1.3.34.1 login.pt:1.3.16.1 undo_log.pt:1.8.32.1

Marius Gedminas marius at pov.lt
Fri Mar 19 13:51:13 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv26650/src/zope/app/browser

Modified Files:
      Tag: mgedmin-events2-branch
	auth.py login.pt undo_log.pt 
Log Message:
Added IParticipation and replaced the lists of principals in IInteraction with
a list of participations.  Made BaseRequest an IParticipation and replaced
request.user with request.principal everywhere.



=== Zope3/src/zope/app/browser/auth.py 1.3 => 1.3.34.1 ===
--- Zope3/src/zope/app/browser/auth.py:1.3	Mon Aug  4 09:58:02 2003
+++ Zope3/src/zope/app/browser/auth.py	Fri Mar 19 13:50:09 2004
@@ -28,7 +28,7 @@
 
     def login(self, nextURL=None):
         """See zope.app.interfaces.security.ILogin"""
-        if isinstance(removeAllProxies(self.request.user), \
+        if isinstance(removeAllProxies(self.request.principal), \
                       UnauthenticatedPrincipal):
             self.request.unauthorized("basic realm='Zope'")
             return self.failed()
@@ -55,7 +55,7 @@
 
     def logout(self, nextURL=None):
         """See zope.app.interfaces.security.ILogout"""
-        if not isinstance(self.request.user, UnauthenticatedPrincipal):
+        if not isinstance(self.request.principal, UnauthenticatedPrincipal):
             self.request.unauthorized("basic realm='Zope'")
             if nextURL:
                 return self.redirect()


=== Zope3/src/zope/app/browser/login.pt 1.3 => 1.3.16.1 ===
--- Zope3/src/zope/app/browser/login.pt:1.3	Tue Dec 23 11:57:26 2003
+++ Zope3/src/zope/app/browser/login.pt	Fri Mar 19 13:50:09 2004
@@ -6,7 +6,7 @@
 
      <p style="font-size: 200%" i18n:translate="">
        You are now logged in as 
-       <em tal:content="view/request/user/getTitle" 
+       <em tal:content="view/request/principal/getTitle" 
            i18n:name="UserTitle">Joe Smith</em>.
      </p>
 


=== Zope3/src/zope/app/browser/undo_log.pt 1.8 => 1.8.32.1 ===
--- Zope3/src/zope/app/browser/undo_log.pt:1.8	Wed Aug  6 10:41:11 2003
+++ Zope3/src/zope/app/browser/undo_log.pt	Fri Mar 19 13:50:09 2004
@@ -30,7 +30,7 @@
     <span tal:condition="all">
       <p i18n:translate="">
         You are 
-        <span tal:replace="request/user/getId"
+        <span tal:replace="request/principal/getId"
               i18n:name="username">username</span>, 
         looking at all transactions. <a href="?">View only your own 
         transactions</a>.
@@ -41,14 +41,14 @@
 
     <span tal:condition="not:all">
       <p i18n:translate="">You are 
-        <span tal:replace="request/user/getId"
+        <span tal:replace="request/principal/getId"
               i18n:name="username">username</span>, 
         looking at your own transactions.  
         <a href="?all=yes">View everyone's transactions</a>.
       </p>
       <span tal:omit-tag=""
           tal:define="global undoInfo python:view.getUndoInfo(first=first,
-                                             user_name=request.user.getId())"/>
+                                             user_name=request.principal.getId())"/>
     </span>
 
     <p>




More information about the Zope3-Checkins mailing list