19 Aug
2002
19 Aug
'02
7:49 p.m.
Dan Jacobs writes:
Is there an easy way within a DTML method to acquire a named object that may be anywhere upward.
At the moment I'm looking at the parent by doing aq_parent['name'] but that only looks one level up. You may try:
"getattr(aq_parent,name)" It starts at "aq_parent" looking for "name" and, if unsuccessful, uses acquisition to resolve "name". Dieter