Hanno Schlichting wrote:
> Looks like nobody feels like jumping into the test layers waters.
Finally found some time to look into this.
> Unless someone does in the next days, I'll revert the OFS / OFSP
> refactoring on Zope trunk.
AFAICS this is the point where you went astray:
If you revert that revision and fix installPackage instead of trying to
work around the bug everything seems to work fine. I'm not in the mood
to write tests for installPackage and to figure out what else needs to
be reverted, so I just attached my patch.
--- Zope2/src/Testing/ZopeTestCase/ZopeLite.py (revision 114921)
+++ Zope2/src/Testing/ZopeTestCase/ZopeLite.py (working copy)
@@ -194,6 +194,7 @@
from OFS.metaconfigure import has_package
def installPackage(name, quiet=0):
'''Installs a registered Python package.'''
quiet = 1 # Ignore argument
@@ -218,6 +219,7 @@
if not quiet: _print('Installing %s ... NOT FOUND\n' % name)
installProduct('PluginIndexes', 1) # Must install first
# So people can use ZopeLite.app()
app = Zope2.app
Zope-CMF maillist - Zope-CMF@zope.org
See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests