[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testPrincipalPermissionView.py:1.1.2.5
Casey Duncan
casey@zope.com
Fri, 29 Mar 2002 10:24:14 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv19367
Modified Files:
Tag: Zope-3x-branch
testPrincipalPermissionView.py
Log Message:
Now properly uses memento storage
=== Zope3/lib/python/Zope/App/Security/tests/testPrincipalPermissionView.py 1.1.2.4 => 1.1.2.5 ===
from Zope.ComponentArchitecture import defineService, provideService
from Zope.ComponentArchitecture import provideAdapter
-from Zope.App.Security.IAttributePrincipalPermissionManageable \
- import IAttributePrincipalPermissionManageable
+from Zope.App.OFS.Memento.IAttributeMementoStorable \
+ import IAttributeMementoStorable
+from Zope.App.OFS.Memento.IMementoBag import IMementoBag
+from Zope.App.OFS.Memento.AttributeMementoBag import AttributeMementoBag
from Zope.App.Security.IPermissionService import IPermissionService
from Zope.App.Security.IAuthenticationService import IAuthenticationService
from Zope.App.Security.IPrincipalPermissionManager \
@@ -31,7 +33,7 @@
class DummyContext:
- __implements__ = IAttributePrincipalPermissionManageable
+ __implements__ = IAttributeMementoStorable
#IPrincipalPermissionManager, IPrincipalPermissionMap
class DummyPermissionService:
@@ -146,8 +148,10 @@
provideService('AuthenticationService',
DummyAuthenticationService(principals = self._principals))
- provideAdapter(IAttributePrincipalPermissionManageable,
+ provideAdapter(IAttributeMementoStorable,
IPrincipalPermissionManager, DummyAdapter)
+ provideAdapter(IAttributeMementoStorable, IMementoBag,
+ AttributeMementoBag)
def _makeOne(self):
from Zope.App.Security.PrincipalPermissionView \