X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/e84ba700349f0777d7e94b6b7692f53fc6860e17..9e76287b3cab01ba1a2ba970e8da2dbc40bc6a93:/catalog_adapters.py?ds=inline diff --git a/catalog_adapters.py b/catalog_adapters.py index 64130ad..86b2c3b 100644 --- a/catalog_adapters.py +++ b/catalog_adapters.py @@ -1,7 +1,9 @@ from Products.CMFCore.CatalogTool import IndexableObjectWrapper +from OFS.interfaces import IOrderedContainer class PlinnIndexableObjectWrapper(IndexableObjectWrapper) : def position(self) : parent = self.getParentNode() - pos = parent.getObjectPosition(self.getId()) - return pos \ No newline at end of file + if IOrderedContainer.providedBy(parent) : + pos = parent.getObjectPosition(self.getId()) + return pos \ No newline at end of file