Commit 9ffb7b06 authored by Jean-Paul Smets's avatar Jean-Paul Smets

recursive reindexing implemented by Folder


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@103 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d48d6bd
......@@ -316,13 +316,6 @@ Une ligne tarifaire."""
for my_simulation_movement in self.getDeliveryRelatedValueList(portal_type = 'Simulation Movement'):
self.portal_simulation.applyTargetSolver(my_simulation_movement, solver)
def recursiveImmediateReindexObject(self):
# Reindex self
XMLObject.immediateReindexObject(self)
# Reindex cells
for cell in self.contentValues(filter={'portal_type': 'Delivery Cell'}):
cell.immediateReindexObject()
def applyToDeliveryLineRelatedMovement(self, portal_type='Simulation Movement', method_id = 'expand'):
# Find related in simulation
for my_simulation_movement in self.getDeliveryRelatedValueList(
......
......@@ -30,6 +30,7 @@ from Products.CMFCategory.Category import Category as CMFCategory
from Products.CMFCategory.Category import BaseCategory as CMFBaseCategory
from Globals import InitializeClass, DTMLFile
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
from Products.ERP5.Document.MetaNode import MetaNode
from Products.ERP5.Document.MetaResource import MetaResource
......@@ -130,24 +131,6 @@ class Category(CMFCategory, PredicateGroup, MetaNode, MetaResource):
# Declarative interfaces
__implements__ = ( Interface.Predicate , )
def recursiveReindexObject(self):
"""
Fixes the hierarchy structure (use of Base class)
XXXXXXXXXXXXXXXXXXXXXXXX
BUG here : when creating a new base category
"""
self.activate().recursiveImmediateReindexObject()
def recursiveImmediateReindexObject(self):
"""
Applies immediateReindexObject recursively
"""
# Reindex self
self.immediateReindexObject()
# Reindex contents
for c in self.objectValues():
c.recursiveImmediateReindexObject()
manage_addBaseCategoryForm=DTMLFile('dtml/base_category_add', globals())
def addBaseCategory( self, id, title='', REQUEST=None ):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment