----- Original Message ----- 
From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]>
To: "Zope Developers list" <[EMAIL PROTECTED]>
Sent: Thursday, August 01, 2002 11:37 PM
Subject: Re: [Zope-dev] Removing the acquisition wrapper from an object(Python script)

> On Thu, 2002-08-01 at 14:38, Gilles Lenfant wrote:
> > [...]
> > Now I'm always looking for an alternate way to get rid of the acquisition wrapper 
>and access only the objects own props.
> To access an object's own props (and get an error if it doesn't find
> them instead of looking up the aq-chain) you don't need to remove it's
> acquisition wrappers, you just need to tell him not to use acquisition
> implicitly. The way you do that is to ask the object for a
> non-implicit-acquisition version of itself, that is, an explicit
> acquisition object:
> non_implicit_obj = obj.aq_explicit
> obj.some_attr
> or just:
> obj.aq_explicit.some_attr


Many thanks, exactly what I needed !

I didn't find much doc about these aq_xxx methods/functions. Where can I find this ?



Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to