[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.10
Yvo Schubbe
schubbe at web.de
Wed Sep 24 06:02:46 EDT 2003
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv1184/CMFCore/tests/base
Modified Files:
dummy.py
Log Message:
Merged yuppie-deleteMembers-branch:
- Added deleteMemberData, deleteMemberArea and deleteLocalRoles.
- Added 'recursive' argument to deleteLocalRoles.
- Renamed createMemberarea to createMemberArea.
- Moved getMembersFolder to CMFCore.
- Added CMFCoreExceptions.py.
- Added 'Change local roles' Permission.
=== CMF/CMFCore/tests/base/dummy.py 1.9 => 1.10 ===
--- CMF/CMFCore/tests/base/dummy.py:1.9 Wed Jun 11 07:11:18 2003
+++ CMF/CMFCore/tests/base/dummy.py Wed Sep 24 06:02:15 2003
@@ -3,7 +3,7 @@
from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.ActionProviderBase import ActionProviderBase
-from security import OmnipotentUser
+from security import OmnipotentUser
class DummyObject(Implicit):
@@ -168,6 +168,8 @@
def getId(self):
return self._id
+ def reindexObjectSecurity(self):
+ pass
class DummySite(DummyFolder):
""" A dummy portal folder.
@@ -219,7 +221,7 @@
def __init__(self):
setattr( self, 'user_foo', DummyUser(id='user_foo') )
setattr( self, 'user_bar', DummyUser(id='user_bar') )
- setattr( self, 'all_powerful_Oz', OmnipotentUser() )
+ setattr( self, 'all_powerful_Oz', OmnipotentUser() )
def getUsers(self):
pass
@@ -229,6 +231,10 @@
def getUserById(self, id, default=None):
return self.getUser(id)
+
+ def userFolderDelUsers(self, names):
+ for user_id in names:
+ delattr(self, user_id)
class DummyTool(Implicit,ActionProviderBase):
More information about the CMF-checkins
mailing list