[Zope-dev] Acquisition wishlist :-)

Chris Withers chrisw@nipltd.com
Thu, 04 Jan 2001 10:46:35 +0000


Dieter Maurer wrote:
> 
>  >      acquisition.donotacquire('index_html')
> This would be great.

Indeed :-)

>  > class MyClass (Acquisition.Explicit):
>  >
>  >      acquisition = ClassAcquisitionInfo()
>  >
>  >      acquisition.acquire('index_html')
>  >      acquisition.acquire('fred')
> You already can do that, though with a different syntax
> (I would need to search for in the documentation).

You may mean that if x is an Acquisition.Explicit object, you can do:

x.aq_acquire('your_attribute') (syntax may be wrong ;-)

What I meant is that through a declaration in the class you could saying
acquire the 'your_attribute' attribute but nothing else. So, you could
still do:

x.your_attribute ...which would be acquired, but...
x.index_html     ...which wouldn't be acquired.

cheers,

Chris
> 
> Dieter
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )