-ctool.manage_addProduct['ProxyIndex'].manage_addProxyIndex('position',
- extra = { 'idx_type' : 'FieldIndex'
- , 'value_expr' : 'python:object.getParentNode().getObjectPosition(object.getId())'})
+if not 'position' in ctool.indexes() :
+ ctool.manage_addProduct['ProxyIndex'].manage_addProxyIndex('position',
+ extra = { 'idx_type' : 'FieldIndex'
+ , 'value_expr' : 'python:object.getParentNode().getObjectPosition(object.getId())'})