[CMF-checkins] CVS: Products/CMFCore/tests/base - security.py:1.8
Florent Guillaume
fg at nuxeo.com
Tue Nov 16 17:06:50 EST 2004
Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv26064/tests/base
Modified Files:
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.7 => 1.8 ===
--- Products/CMFCore/tests/base/security.py:1.7 Tue Aug 24 15:16:32 2004
+++ Products/CMFCore/tests/base/security.py Tue Nov 16 17:06:50 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