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. And then how to get that (or any objects) path/URL. Both DTML or Python solutions would do. Best Regards, Johan Carlsson torped johan carlsson birkagatan 9 113 36 stockholm telefon 08-32 31 23 mobil 070-558 25 24 fax 08-32 89 47 johanc@torped.se
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
participants (2)
-
Johan Carlsson -
Pavlos Christoforou