Commit 6e6e3eef authored by 's avatar

Merged fix for product initialization from 2.2 branch

parent cd556920
......@@ -85,8 +85,8 @@
__doc__='''Application support
$Id: Application.py,v 1.131 2000/08/02 17:31:54 brian Exp $'''
__version__='$Revision: 1.131 $'[11:-2]
$Id: Application.py,v 1.132 2000/08/10 14:22:48 brian Exp $'''
__version__='$Revision: 1.132 $'[11:-2]
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, string, Products
......@@ -485,7 +485,10 @@ def install_products(app):
initmethod=pgetattr(product, 'initialize', None)
if initmethod is not None:
initmethod(context)
else:
# Support old-style product metadata. Older products may
# define attributes to name their permissions, meta_types,
# constructors, etc.
permissions={}
new_permissions={}
for p in pgetattr(product, '__ac_permissions__', ()):
......
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