[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - creatorannotator.py:1.5.16.3

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


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

Modified Files:
      Tag: mgedmin-events2-branch
	creatorannotator.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/app/dublincore/creatorannotator.py 1.5.16.2 => 1.5.16.3 ===
--- Zope3/src/zope/app/dublincore/creatorannotator.py:1.5.16.2	Mon Mar  8 14:28:41 2004
+++ Zope3/src/zope/app/dublincore/creatorannotator.py	Fri Mar 19 13:50:46 2004
@@ -38,8 +38,8 @@
         # of creators.
         interaction = getInteraction()
         if interaction is not None:
-            for principal in interaction.principals:
-                principalid = principal.getId()
+            for participation in interaction.participations:
+                principalid = participation.principal.getId()
                 if not principalid in dc.creators:
                     dc.creators = dc.creators + (unicode(principalid), )
 




More information about the Zope3-Checkins mailing list