[CMF-checkins] CVS: Products/CMFCore/tests/base -
security.py:1.3.4.3
Florent Guillaume
fg at nuxeo.com
Tue Nov 16 16:52:07 EST 2004
Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv22645/tests/base
Modified Files:
Tag: CMF-1_4-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.3.4.2 => 1.3.4.3 ===
--- Products/CMFCore/tests/base/security.py:1.3.4.2 Fri Apr 23 17:11:36 2004
+++ Products/CMFCore/tests/base/security.py Tue Nov 16 16:52:07 2004
@@ -32,6 +32,9 @@
getUserName = getId
+ def getRoles(self):
+ return ('Manager',)
+
def allowed( self, object, object_roles=None ):
return 1
@@ -47,6 +50,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