faqts : Computers : Internet : Web Servers : Zope : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 20 people (50%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How to access methods or queries in the parent's parent's parent's subfolder?

Jul 16th, 2000 23:56
unknown unknown, Chris McDonough


Problem:
Root
-----Folder1
----------Sub1
--------------My_Qry
----------Sub2
---------------otherfolder
--------------------How_to_access_My_Qry_from_Sub1????
is there <dtml-var parent.parent..... type thing??? or do you have to 
call the parentobject method and assign it to some object before getting 
to it?
Solution:
Try,
<dtml-var "Sub1.My_Qry()">
If you need to pass arguments to My_Qry:
<dtml-var "Sub1.My_Qry(arg1='val1', arg2='val2')">