[Zope-Checkins] CVS: Zope2 - Application.py:1.146
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Mon, 21 May 2001 13:57:57 -0400
Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/home/chrism/sandboxes/PostRegexTrunk/lib/python/OFS
Modified Files:
Application.py
Log Message:
Add 'Authenticated' role as a standard Zope role. The Authenticated role is provided to those users who have succesfully authenticated to Zope in any manner (basically, all users who are not the Anonymous User) by default.
--- Updated File Application.py in package Zope2 --
--- Application.py 2001/05/17 18:37:40 1.145
+++ Application.py 2001/05/21 17:57:57 1.146
@@ -420,6 +420,13 @@
get_transaction().note('Added Owner role')
get_transaction().commit()
+ # ensure the Authenticated role exists.
+ if hasattr(app, '__ac_roles__'):
+ if not 'Authenticated' in app.__ac_roles__:
+ app.__ac_roles__=app.__ac_roles__ + ('Authenticated',)
+ get_transaction().note('Added Authenticated role')
+ get_transaction().commit()
+
# Make sure we have Globals
root=app._p_jar.root()
if not root.has_key('ZGlobals'):