From 9ffb7b0665741da2139e074dd8b290a18c7bbe6e Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 14 Dec 2003 14:17:30 +0000 Subject: [PATCH] recursive reindexing implemented by Folder git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@103 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliveryLine.py | 7 ------- product/ERP5/Tool/Category.py | 19 +------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/product/ERP5/Document/DeliveryLine.py b/product/ERP5/Document/DeliveryLine.py index d8a8d41362..4b28312cb1 100755 --- a/product/ERP5/Document/DeliveryLine.py +++ b/product/ERP5/Document/DeliveryLine.py @@ -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( diff --git a/product/ERP5/Tool/Category.py b/product/ERP5/Tool/Category.py index cebee3cc18..859cc4fc1f 100755 --- a/product/ERP5/Tool/Category.py +++ b/product/ERP5/Tool/Category.py @@ -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 ): -- 2.30.9