[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/grants/tests - test_principalpermissionview.py:1.8.30.1

Jim Fulton cvs-admin at zope.org
Tue Nov 18 17:26:52 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/security/grants/tests
In directory cvs.zope.org:/tmp/cvs-serv19243/src/zope/app/browser/security/grants/tests

Modified Files:
      Tag: adaptergeddon-branch
	test_principalpermissionview.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/browser/security/grants/tests/test_principalpermissionview.py 1.8 => 1.8.30.1 ===
--- Zope3/src/zope/app/browser/security/grants/tests/test_principalpermissionview.py:1.8	Fri Jun  6 16:44:27 2003
+++ Zope3/src/zope/app/browser/security/grants/tests/test_principalpermissionview.py	Tue Nov 18 17:26:20 2003
@@ -18,6 +18,7 @@
 
 import unittest
 
+from zope.app.tests import ztapi
 from zope.component import getService, getServiceManager
 from zope.app.services.servicenames import Permissions, Adapters
 from zope.app.services.servicenames import Authentication
@@ -157,10 +158,9 @@
 
         provideService(Authentication,
             DummyAuthenticationService(principals = self._principals))
-        provideAdapter=getService(None,Adapters).provideAdapter
-        provideAdapter(IAttributeAnnotatable,
+        ztapi.provideAdapter(IAttributeAnnotatable,
                        IPrincipalPermissionManager, DummyAdapter)
-        provideAdapter(
+        ztapi.provideAdapter(
             IAttributeAnnotatable, IAnnotations, AttributeAnnotations)
 
     def _makeOne(self):




More information about the Zope3-Checkins mailing list