Explicitly avoiding acquisition, how?
I asked this before. Jim? Got two seconds? You should know the answer to this one. 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. -- 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_
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
participants (2)
-
Alexander Staubo -
Pavlos Christoforou