Merge commit 'a4cb4d96face514924387d34746b3148848ac092' into zope-2.13
[Plinn.git] / catalog_adapters.py
1 from Products.CMFCore.CatalogTool import IndexableObjectWrapper
2 from OFS.interfaces import IOrderedContainer
3
4 class PlinnIndexableObjectWrapper(IndexableObjectWrapper) :
5 def position(self) :
6 parent = self.getParentNode()
7 if IOrderedContainer.providedBy(parent) :
8 pos = parent.getObjectPosition(self.getId())
9 return pos