[Zope-CMF] ZPT object parent?

J C Lawrence claw@kanga.nu
Tue, 27 Aug 2002 10:07:32 -0700


How do I get the parent folder of an object under ZPT?

I have a ZPT repeat structure that is picking up all the objects of a
certain criteria in all the folders below a certain point.  

    <div tal:repeat="mytype python:here.portal_catalog (
      Type='MyEntry',
      path={'query':herePath}, 
      sort_on='created', 
      sort_order='reverse')">

When I then loop thru and display each one I want to give a link back to
the parent folder that contained the object, not my current location
(which could be many folder levels higher).

(After this is getting the object of the owner of the object)

-- 
J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw@kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.