[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/security/grants/tests
- test_principalpermissionview.py:1.9
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:27 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/security/grants/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/browser/security/grants/tests
Modified Files:
test_principalpermissionview.py
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests. This is needed because
there are no-longer global adapter and view services sitting around as
module globals.
=== Zope3/src/zope/app/browser/security/grants/tests/test_principalpermissionview.py 1.8 => 1.9 ===
--- 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 Fri Nov 21 12:11:56 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