Commit 35878629 authored by Stefan H. Holek's avatar Stefan H. Holek
parent 93ef2655
......@@ -174,7 +174,7 @@ def installPackage(name, quiet=0):
'''Installs a registered Python package like a Zope product.'''
start = time.time()
if _patched and not _installedPackages.has_key(name):
for module, init_func in Products._packages_to_initialize:
for module, init_func in getattr(Products, '_packages_to_initialize', []):
if module.__name__ == name:
if not quiet: _print('Installing %s ... ' % module.__name__)
# We want to fail immediately if a package throws an exception
......
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