[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions - BrowserIdManager.py:1.8.2.1 SessionDataManager.py:1.13.2.1
Chris McDonough
chrism@zope.com
Fri, 11 Jan 2002 09:32:49 -0500
Update of /cvs-repository/Zope/lib/python/Products/Sessions
In directory cvs.zope.org:/tmp/cvs-serv10009/Sessions
Modified Files:
Tag: Zope-2_5-branch
BrowserIdManager.py SessionDataManager.py
Log Message:
Changing default access to be a dictionary in publically-accessible modules so as to allow access meta_type, id, icon, and bobobase_modification_time.
=== Zope/lib/python/Products/Sessions/BrowserIdManager.py 1.8 => 1.8.2.1 ===
)
+ __implements__ = (SessionInterfaces.BrowserIdManagerInterface, )
+
+ icon = 'misc_/Sessions/idmgr.gif'
+
security = ClassSecurityInfo()
- security.setDefaultAccess('deny')
+ ok = {'meta_type':1, 'id':1, 'icon':1, 'bobobase_modification_time':1 }
+ security.setDefaultAccess(ok)
security.setPermissionDefault(MGMT_SCREEN_PERM, ['Manager'])
security.setPermissionDefault(ACCESS_CONTENTS_PERM,['Manager','Anonymous'])
security.setPermissionDefault(CHANGE_IDMGR_PERM, ['Manager'])
-
- __implements__ = (SessionInterfaces.BrowserIdManagerInterface, )
-
- icon = 'misc_/Sessions/idmgr.gif'
def __init__(self, id, title='', idname='_ZopeId',
location='cookiesthenform', cookiepath=('/'),
=== Zope/lib/python/Products/Sessions/SessionDataManager.py 1.13 => 1.13.2.1 ===
security = ClassSecurityInfo()
- security.setDefaultAccess('deny')
+ ok = {'meta_type':1, 'id':1, 'icon':1, 'bobobase_modification_time':1 }
+ security.setDefaultAccess(ok)
security.setPermissionDefault(CHANGE_DATAMGR_PERM, ['Manager'])
security.setPermissionDefault(MGMT_SCREEN_PERM, ['Manager'])
security.setPermissionDefault(ACCESS_CONTENTS_PERM,['Manager','Anonymous'])