20 Apr
1999
20 Apr
'99
12:47 a.m.
Hi Johan On Tue, 20 Apr 1999, Johan Carlsson wrote:
Hi, I'm trying to figure out how to do reverse acquisition (in other words to find the first occurrence of a certain object below a particular object.
The find tag on the Zope management screen does more or less what you need. If you want to write your own external method to perform the search, check Zope/lib/python/OFS/FindSupport.py. Note that searching the database in this manner will activate every-single object. If the database is large it will seriously affect performance.
And then how to get that (or any objects) path/URL.
you can call the absolute_url() method of the object. ie <!--# var "spam.absolute_url()"--> Pavlos