Thanks! Just what I needed, and about time too :-) -- Alexander Staubo http://www.mop.no/~alex/ "`This must be Thursday,' said Arthur to himself, sinking low over his beer, `I never could get the hang of Thursdays.'" --Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Pavlos Christoforou Sent: 14. juni 1999 22:07 To: Alexander Staubo Cc: Zope Mailing List (E-mail) Subject: Re: [Zope] Explicitly avoiding acquisition, how?
On Mon, 14 Jun 1999, Alexander Staubo wrote:
I'd like to get at an attribute or folder subobject without going through implicit acquisition. For example, I'd like to have a DTML Method that checks its parent folder if that folder and
_not_ its parent
folders carry a specific attribute. In other words, I want to test for the _existence_ of an attribute. Same for folder subobjects.
the aq_base attribute of your object returns the 'unwrapped' object.
so <!--3 var "spam.aq_base"--> gets the object without the acquisition wrappers.
Pavlos
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )