[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_contents.py:1.28.2.1

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


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

Modified Files:
      Tag: mgedmin-events2-branch
	test_contents.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/browser/container/tests/test_contents.py 1.28 => 1.28.2.1 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.28	Fri Feb 13 22:27:13 2004
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py	Fri Mar 19 13:50:10 2004
@@ -289,7 +289,7 @@
         from zope.app.browser.container.contents import Contents
         from zope.publisher.browser import TestRequest
         request = TestRequest()
-        request.setUser(Principal())
+        request.setPrincipal(Principal())
         return Contents(container, request)
 
 class Test(BaseTestContentsBrowserView, TestCase):
@@ -305,7 +305,7 @@
         from zope.app.browser.container.contents import Contents
         from zope.publisher.browser import TestRequest
         request = TestRequest()
-        request.setUser(Principal())
+        request.setPrincipal(Principal())
         return Contents(container, request)
 
 def test_suite():




More information about the Zope3-Checkins mailing list