[Zope-dev] TransparentFolders version 0.1 released

Shane Hathaway shane@digicool.com
Fri, 28 Apr 2000 16:25:37 -0400


Zopistas,

I've made the first version of TransparentFolders available.

http://www.zope.org/Members/hathawsh/TransparentFolders

See the description online.  It's easy to use; just add a Transparent
Folder to any Folder and the folder will effectively acquire from all
contained transparent folders.  There are currently no rules for
selecting among overloaded transparent objects; that issue can be dealt
with later.  This is just a proof of concept and something to try out.

It seems to be plenty fast enough except when used with the version of
Zope in the CVS repository, where it slows down the startup procedure
dramatically.  Versions 2.1.6 and below don't seem to suffer from the
slowdown.  The slowdown is apparently related to the new help system.

The bulk of the product (which is less than 5K compressed!) is a patch
to ObjectManager which causes it to search for transparent objects when
necessary. I took advantage of Python's flexibility to patch
ObjectManager without actually overwriting it (that's why it works with
multiple versions of ObjectManager).

There is a chance that some product out there will conflict with the
patch, however.  I recommend you make a backup of your Zope installation
(or if you're savvy, just back up lib/python/OFS/__init__.py) because it
does need to modify one source file directly.  If TransparentFolders
conflicts with another product, you should be able to simply remove the
lib/python/Products/TransparentFolders directory and the patch will be
gone.

Anyway, good luck.  It should be very useful for many Zopistas!

Shane