Commit 2c0f5089 authored by Romain Courteaud's avatar Romain Courteaud

Add activate_kw parameter to edit.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15159 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1685bf74
......@@ -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):
......
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