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

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Jul 13 13:23:19 EDT 2004


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

Modified Files:
      Tag: yuppie-collector119and201-branch
	dummy.py 
Log Message:
- added tests for collector issue 119 and 201


=== Products/CMFCore/tests/base/dummy.py 1.17 => 1.17.6.1 ===
--- Products/CMFCore/tests/base/dummy.py:1.17	Tue Apr 13 13:38:59 2004
+++ Products/CMFCore/tests/base/dummy.py	Tue Jul 13 13:22:49 2004
@@ -1,7 +1,6 @@
 from Acquisition import Implicit, aq_base, aq_inner, aq_parent
 from OFS.SimpleItem import Item
 from Products.CMFCore.PortalContent import PortalContent
-from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
 from Products.CMFCore.ActionProviderBase import ActionProviderBase
 from security import OmnipotentUser
 
@@ -253,12 +252,6 @@
     def __init__(self, anon=1):
         self.anon = anon
 
-    def isAnonymousUser(self):
-        return self.anon
-
-    def getAuthenticatedMember(self):
-        return DummyUser()
-
     def __call__( self ):
         return self.root
 
@@ -269,6 +262,16 @@
 
     def getIcon( self, relative=0 ):
         return 'Tool: %s' % relative
+
+    # MembershipTool
+    def getAuthenticatedMember(self):
+        return DummyUser()
+
+    def isAnonymousUser(self):
+        return self.anon
+
+    def checkPermission(self, permissionName, object, subobjectName=None):
+        return True
 
     # TypesTool
     def listTypeInfo(self, container=None):



More information about the CMF-checkins mailing list