[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.11

Yvo Schubbe schubbe at web.de
Mon Sep 29 07:20:09 EDT 2003


Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv26179/CMFCore/tests/base

Modified Files:
	dummy.py 
Log Message:
fixed getCandidateLocalRoles:
- filter out 'Member' correctly (Collector #148 and #169)
- also filter out 'Authenticated'
changed permissions:
- protect user management methods by 'Manage users', not 'Manage portal'
updated interface and added Local Roles methods to it

=== CMF/CMFCore/tests/base/dummy.py 1.10 => 1.11 ===
--- CMF/CMFCore/tests/base/dummy.py:1.10	Wed Sep 24 06:02:15 2003
+++ CMF/CMFCore/tests/base/dummy.py	Mon Sep 29 07:19:39 2003
@@ -171,12 +171,14 @@
     def reindexObjectSecurity(self):
         pass
 
+
 class DummySite(DummyFolder):
     """ A dummy portal folder.
     """
 
     _domain = 'http://www.foobar.com'
     _path = 'bar'
+    __ac_roles__ = ('Member', 'Reviewer')
 
     def absolute_url(self, relative=0):
         return '/'.join( (self._domain, self._path, self._id) )
@@ -208,8 +210,11 @@
             return 0
         if object_roles:
             if 'FooAdder' in object_roles:
-                return 0 
+                return 0
         return 1
+
+    def getRolesInContext(self, object):
+        return ('Authenticated', 'Dummy', 'Member')
 
 
 class DummyUserFolder(Implicit):




More information about the CMF-checkins mailing list