Commit d709f4b3 authored by 's avatar

Added startup code to Application.py to ensure that the Owner role is

defined for previously existing installations that may have added roles
in the top-level folder.
parent eb3755af
......@@ -85,8 +85,8 @@
__doc__='''Application support
$Id: Application.py,v 1.106 1999/05/11 18:31:27 jim Exp $'''
__version__='$Revision: 1.106 $'[11:-2]
$Id: Application.py,v 1.107 1999/05/24 17:18:27 brian Exp $'''
__version__='$Revision: 1.107 $'[11:-2]
import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry, misc_
......@@ -353,6 +353,13 @@ def initialize(app):
get_transaction().note('Added standard_error_message')
get_transaction().commit()
# b/c: Ensure that Owner role exists.
if hasattr(app, '__ac_roles__') and not ('Owner' in app.__ac_roles__):
app.__ac_roles__=app.__ac_roles__ + ('Owner',)
get_transaction().note('Added Owner role')
get_transaction().commit()
install_products(app)
get_transaction().note('Product installations')
get_transaction().commit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment