[Checkins] SVN: Zope/trunk/ installPackage doesn't do anything, without loading the OFS configure.zcml first. The ZopeLite layer doesn't know anything about ZCML, so we rather defer the setup to consumers.

Hanno Schlichting hannosch at hannosch.eu
Sun Jul 11 07:33:18 EDT 2010


Log message for revision 114576:
  installPackage doesn't do anything, without loading the OFS configure.zcml first. The ZopeLite layer doesn't know anything about ZCML, so we rather defer the setup to consumers.
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/Testing/ZopeTestCase/ZopeLite.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2010-07-11 11:23:49 UTC (rev 114575)
+++ Zope/trunk/doc/CHANGES.rst	2010-07-11 11:33:17 UTC (rev 114576)
@@ -25,7 +25,10 @@
 - No longer use HelpSys pages from ``Products.OFSP`` in core Zope 2.
 
 - Register OFS as a package and give it an initialize function. Moved
-  registration of OFS classes there from Products.OFSP.
+  registration of OFS classes there from Products.OFSP. ZopeTestCase will no
+  longer install the OFSP product automatically, so you might need to change
+  your test layer setup to load the OFS configure.zcml and call
+  installPackage('OFS').
 
 - No longer create an `Extensions` folder in the standard instance skeleton.
   External methods will become entirely optional in Zope 2.14.

Modified: Zope/trunk/src/Testing/ZopeTestCase/ZopeLite.py
===================================================================
--- Zope/trunk/src/Testing/ZopeTestCase/ZopeLite.py	2010-07-11 11:23:49 UTC (rev 114575)
+++ Zope/trunk/src/Testing/ZopeTestCase/ZopeLite.py	2010-07-11 11:33:17 UTC (rev 114576)
@@ -218,7 +218,6 @@
             if not quiet: _print('Installing %s ... NOT FOUND\n' % name)
 
 installProduct('PluginIndexes', 1)  # Must install first
-installPackage('OFS', 1)
 
 # So people can use ZopeLite.app()
 app = Zope2.app



More information about the checkins mailing list