[CMF-checkins] CVS: CMF/functest/visitor - scaffolding.py:1.2

Tres Seaver tseaver@zope.com
Mon, 28 Apr 2003 14:09:27 -0400


Update of /cvs-repository/CMF/functest/visitor
In directory cvs.zope.org:/tmp/cvs-serv2590/visitor

Modified Files:
	scaffolding.py 
Log Message:
 - Accomodate new requirement that even fake users expose roles.

=== CMF/functest/visitor/scaffolding.py 1.1 => 1.2 ===
--- CMF/functest/visitor/scaffolding.py:1.1	Thu Aug 29 19:05:40 2002
+++ CMF/functest/visitor/scaffolding.py	Mon Apr 28 14:09:27 2003
@@ -38,6 +38,9 @@
     def allowed( self, object, object_roles=None ):
         return 1
 
+    def getRoles( self ):
+        return ( 'Manager', )
+
 def fakeSecurity( site ):
     newSecurityManager( None, FTUser().__of__( site.acl_users ) )