[Zope] Getting the position of an object in a folder
   
    Maik Jablonski
     
    maik.jablonski@uni-bielefeld.de
       
    Thu, 22 Aug 2002 23:04:53 +0200
    
    
  
Pierre Godefroy wrote:
> Is there a simple and direct way to get the position of an object in a 
> parent folder without iterating with a dtml-in loop through all the 
> objects of the folder and countring until one gets to the id of the said 
> object?
> 
a little python-script should do this trick for you:
return context.objectIds().index('standard_html_header')
cheers, maik
-- 
Maik Jablonski                 __o
www.zfl.uni-bielefeld.de     _ \<_    Deutsche Zope User Group
Bielefeld, Germany          (_)/(_)               www.dzug.org