16 May
2003
16 May
'03
8:10 p.m.
Thierry FLORAC wrote at 2003-5-16 14:38 +0200:
On Friday 16 May 2003 10:33, Geir Bækholt wrote:
On Fri, 16 May 2003 08:55:23 +0200 GMT (..8:55 where i live(GMT+2) ) Wim Bekker asked the Zope mailinglist about the following:
WB> How can I obtain the 'parent' object in Zope with python (script)?
myparent = object.aq_parent
Hi,
Maybe I'm wrong, but I've read here and there that the correct syntax should be :
parent = object.aq_inner.aq_parent
"aq_inner" is protected, you cannot use it in TTW code. "getParentNode" (suggested by someone else) may work (though I am not sure). Dieter