From 2c0f50892dc99c98e3db7e8b6f9abc23bd4e7be8 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 5 Jul 2007 17:02:49 +0000 Subject: [PATCH] Add activate_kw parameter to edit. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15159 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 025a5ee79b..b8a93801dd 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -1085,7 +1085,8 @@ class Base( CopyContainer, # Object attributes update method security.declarePrivate( '_edit' ) - def _edit(self, REQUEST=None, force_update=0, reindex_object=0, keep_existing=0, **kw): + def _edit(self, REQUEST=None, force_update=0, reindex_object=0, + keep_existing=0, activate_kw=None, **kw): """ Generic edit Method for all ERP5 object The purpose of this method is to update attributed, eventually do @@ -1147,7 +1148,7 @@ class Base( CopyContainer, if reindex_object: # We do not want to reindex the object if nothing is changed if (self._v_modified_property_dict != {}): - self.reindexObject() + self.reindexObject(activate_kw=activate_kw) security.declareProtected( Permissions.ModifyPortalContent, 'setId' ) def setId(self, id, reindex = 1): -- 2.30.9