projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
222b91b
)
bugfix : on vérifie que le parent implémente bien l'interface d'ordonancement.
author
Benoît Pin
<benoit.pin@gmail.com>
Wed, 3 Jul 2013 21:49:45 +0000
(23:49 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Wed, 3 Jul 2013 21:49:45 +0000
(23:49 +0200)
catalog_adapters.py
patch
|
blob
|
history
diff --git
a/catalog_adapters.py
b/catalog_adapters.py
index
64130ad
..
86b2c3b
100644
(file)
--- 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