[Zope] Getting the position of an object in a folder

Dieter Maurer dieter@handshake.de
Tue, 27 Aug 2002 22:58:03 +0200


Janko Hauser writes:
 > > return context.objectIds().index('standard_html_header')
 > > 
 > 
 > Beware that this is not guaranteed to result always the same index, as
 > objectIds is something like  dict.keys(). The order of the elements in a 
 > mapping
 > is not fixed.
"objectIds" (and friends) does not come from a dict but from a
tuple, at least for the standard folders...


Dieter