Descriptors and Properties lose acquisition wrappers

Ross Patterson me at rpatterson.net
Mon Apr 30 22:52:43 UTC 2007


Martin Aspeli <optilude at gmx.net> writes:

> Ross Patterson wrote:
>
>> What I'd really like to know is why acquisition wrappers get stripped
>> from self in descriptors in the first place.  Is it an acquisition
>> extension class issue?
>
> Yes
>
>>  Is ther any way to work around it?
>
> No
>
>>  Is this
>> problem known about or otherwise documented by those who guard the
>> darker secrets of acquisition?  :)
>
> Yes
>
> Grep the Zope collector - the solution is to use a ComputedAttribute,
> I believe.

Oh right.  I keep forgetting about ComputedAttribute.  But it doesn't
support setting does it?

Ross





More information about the Product-Developers mailing list