[ZCM] [ZC] 2359/ 1 Request "Backport Products as namespace fix to 2.10"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Mon, 24 Sep 2007 13:34:32 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2359 Update (Request) "Backport Products as namespace fix to 2.10"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2359

==============================================================
= Request - Entry #1 by tseaver on Sep 24, 2007 1:34 pm


Uploaded:  "zope-2.10-egg_products.patch"
 - http://www.zope.org/Collectors/Zope/2359/zope-2.10-egg_products.patch/view
The "packages-as-products" code is ugly and buggy in 2.10.4:  it
causes an initial startup to fail when using ZEO, for instance.
I propose backporting the changes required to make Products a
"pure" namespace package, and therefore also fixing the startup
problem.

A nice side-effect of this fix is that products installed on the
PYTHONPATH as eggs (in the 'Products' namespace package) will now
be found and initialized.

Patch attached, backporting changes to Products/__init__.py,
OFS/Application.py, and Products/Five/fiveconfigure.py from the
Zope2 trunk.
==============================================================