[CMF-checkins] CVS: Products/CMFCore/tests/base -
dummy.py:1.20.2.2.2.1
Tres Seaver
tseaver at zope.com
Wed Apr 20 00:34:38 EDT 2005
Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv15029/CMFCore/tests/base
Modified Files:
Tag: tseaver-tune_listFilteredActionsFor-branch
dummy.py
Log Message:
- Noodling at reducing the absurd amount of time taken in 'listFilteredActionsFor' (on a branch for safety).
=== Products/CMFCore/tests/base/dummy.py 1.20.2.2 => 1.20.2.2.2.1 ===
--- Products/CMFCore/tests/base/dummy.py:1.20.2.2 Sun Nov 14 18:52:10 2004
+++ Products/CMFCore/tests/base/dummy.py Wed Apr 20 00:34:38 2005
@@ -281,6 +281,7 @@
def __init__(self, anon=1):
self.anon = anon
+ self.home = DummyFolder()
def __call__( self ):
return self.root
@@ -302,6 +303,11 @@
def checkPermission(self, permissionName, object, subobjectName=None):
return True
+
+ def getHomeFolder(self):
+ if self.anon:
+ return None
+ return self.home
# TypesTool
def listTypeInfo(self, container=None):
More information about the CMF-checkins
mailing list