[Zope] Aquisition

Andreas Kostyrka andreas@mtg.co.at
Thu, 8 Jul 1999 01:19:56 +0200 (CEST)


On Wed, 7 Jul 1999, Jason Spisak wrote:

> Just a heads up,
> 
> I noticed that some of the contributed products don't acquire in Zope 2.
>  Specifically TinyTables, and the Calendar tag.  I'm curious what
> changed to make that happen.  It's seems the same for both products. 
> Just a shout to ask if anyone knows what spcifically changed about
> acquisition from Zope 1 to 2? I tried loking at the code, but got lost trying.
Don't know. You can circumvent Acquisition (or any other kind of
__getattr__ munging) by accessing directly the __dict__ attribute.

This works only from python code. AND it is generally a bad idea, because
big parts of Zope rely upon Acquisition.

For an example of acceptable disabling Acquisition, see the contributed
Navigate product, which provides a Folder method that is quite handy when
generating trees for site navigation.

Andreas
-- 
Win95: n., A huge annoying boot virus that causes random spontaneous system
     crashes, usually just before saving a massive project.  Easily cured by
     UNIX.  See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.