[Zope] Is this it?

tom smith tom@othermedia.com
Mon, 01 Oct 2001 09:17:46 +0100


I recently asked how to call a ZSQL method in a folder higher up the
hierarchy.  I can do it if I manually get the parent. This can't be right
can it?

###
parent = context.REQUEST.PARENTS[0]
results = parent.test_sql()
t = ''
for n in results:
    t = t + n.project_name  + '\n'
return t
###

Surely, there's a way to do it using acquisition so that it would
recursively look higher up the folder structure to find the ZSQL method?

Thanks

Tom

-- 
tom smith    |    tom@othermedia.com    |    http://www.othermedia.com/blog
0207 089 5959   |   Floor 3, The Pavilion, Newhams Lane, London SE1 3UZ