[Zope3-checkins] CVS: Zope3/src/zope/products/securitypolicy - zopepolicy.py:1.3.2.3

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


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

Modified Files:
      Tag: mgedmin-events2-branch
	zopepolicy.py 
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/products/securitypolicy/zopepolicy.py 1.3.2.2 => 1.3.2.3 ===
--- Zope3/src/zope/products/securitypolicy/zopepolicy.py:1.3.2.2	Mon Mar  8 14:28:43 2004
+++ Zope3/src/zope/products/securitypolicy/zopepolicy.py	Fri Mar 19 13:50:52 2004
@@ -77,8 +77,8 @@
         if interaction is None: # interaction arg is just a cache here
             interaction = getInteraction()
         # XXX We aren't really handling multiple principals yet
-        assert len(interaction.principals) == 1 # XXX
-        user = interaction.principals[0]
+        assert len(interaction.participations) == 1 # XXX
+        user = interaction.participations[0].principal
 
         # mapping from principal to set of roles
         if user is system_user:




More information about the Zope3-Checkins mailing list