[CMF-checkins] CVS: Products/CMFCore/tests/base - security.py:1.6.20.2

Florent Guillaume fg at nuxeo.com
Tue Nov 16 17:03:03 EST 2004


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

Modified Files:
      Tag: CMF-1_5-branch
	security.py 
Log Message:
Collector #120: Take into account query restrictions on 'effective' or
'expires' attributes during a search.



=== Products/CMFCore/tests/base/security.py 1.6.20.1 => 1.6.20.2 ===
--- Products/CMFCore/tests/base/security.py:1.6.20.1	Tue Aug 24 15:13:47 2004
+++ Products/CMFCore/tests/base/security.py	Tue Nov 16 17:03:03 2004
@@ -58,6 +58,9 @@
 
     getUserName = getId
 
+    def getRoles(self):
+        return ('Manager',)
+
     def allowed( self, object, object_roles=None ):
         return 1
 
@@ -77,6 +80,9 @@
         return 'high_roller'
 
     getUserName = getId
+
+    def getRoles(self):
+        return self._roles
 
     def allowed( self, object, object_roles=None ):
         if object_roles is None:



More information about the CMF-checkins mailing list