]> CRI, Mines Paris - PSL - Plinn.git/blobdiff - catalog_adapters.py
Indexation de la position par utilisation d'un adaptateur, plutôt que d'utiliser...
[Plinn.git] / catalog_adapters.py
diff --git a/catalog_adapters.py b/catalog_adapters.py
new file mode 100644 (file)
index 0000000..64130ad
--- /dev/null
@@ -0,0 +1,7 @@
+from Products.CMFCore.CatalogTool import IndexableObjectWrapper
+
+class PlinnIndexableObjectWrapper(IndexableObjectWrapper) :
+    def position(self) :
+        parent = self.getParentNode()
+        pos = parent.getObjectPosition(self.getId())
+        return pos
\ No newline at end of file