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

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 8 07:06:52 EST 2004


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

Modified Files:
	test_contents.py 
Log Message:


Adjusted code to use the new APIs for permissions and principals. Also, use
the utility service instead of the permission registry to look up permissions.




=== Zope3/src/zope/app/browser/container/tests/test_contents.py 1.33 => 1.34 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.33	Wed Mar  3 05:52:02 2004
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py	Mon Mar  8 07:05:52 2004
@@ -22,11 +22,9 @@
 from zope.app.copypastemove.interfaces import IObjectMover
 
 from zope.app.traversing import traverse
-from zope.app.copypastemove.interfaces import IObjectMover
-from zope.app.copypastemove.interfaces import IObjectCopier
+from zope.app.copypastemove.interfaces import IObjectMover, IObjectCopier
 
-from zope.app.copypastemove import ObjectMover
-from zope.app.copypastemove import ObjectCopier
+from zope.app.copypastemove import ObjectMover, ObjectCopier
 
 from zope.app.container.interfaces import IObjectRemovedEvent
 from zope.interface import Interface, implements
@@ -154,9 +152,8 @@
 
 
 class Principal:
-
-    def getId(self):
-        return 'bob'
+    
+    id = 'bob'
 
 
 class TestCutCopyPaste(PlacefulSetup, TestCase):




More information about the Zope3-Checkins mailing list