Refactoring API de IndexIterator.
[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