Commit 6a9d16cd authored by Yoshinori Okuji's avatar Yoshinori Okuji

Pass keyword arguments to activate.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03ee62b3
This diff is collapsed.
...@@ -111,8 +111,8 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -111,8 +111,8 @@ class FolderMixIn(ExtensionClass.Base):
my_id = 1 my_id = 1
while self.hasContent(str(my_id)): while self.hasContent(str(my_id)):
my_id = my_id + 1 my_id = my_id + 1
#LOG('_setLastId', 0, str(self)) #LOG('_setLastId', 0, str(self))
#LOG('_setLastId', 0, str(self.aq_base)) #LOG('_setLastId', 0, str(self.aq_base))
self._setLastId(str(my_id)) # Make sure no reindexing happens self._setLastId(str(my_id)) # Make sure no reindexing happens
else: else:
my_id = self.portal_ids.generateNewId(id_group=id_group,default=default,method=method) my_id = self.portal_ids.generateNewId(id_group=id_group,default=default,method=method)
...@@ -253,7 +253,7 @@ be a problem).""" ...@@ -253,7 +253,7 @@ be a problem)."""
_edit = Base._edit _edit = Base._edit
_setPropValue = Base._setPropValue _setPropValue = Base._setPropValue
_propertyMap = Base._propertyMap # are there any others XXX ? _propertyMap = Base._propertyMap # are there any others XXX ?
#security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' ) #security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' )
#manage_delObjects = CopyContainer.manage_delObjects #manage_delObjects = CopyContainer.manage_delObjects
...@@ -450,7 +450,7 @@ be a problem).""" ...@@ -450,7 +450,7 @@ be a problem)."""
XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX
BUG here : when creating a new base category BUG here : when creating a new base category
""" """
self.activate().recursiveImmediateReindexObject(*args, **kw) self.activate(**kw).recursiveImmediateReindexObject(*args, **kw)
security.declarePublic( 'recursiveImmediateReindexObject' ) security.declarePublic( 'recursiveImmediateReindexObject' )
def recursiveImmediateReindexObject(self, *args, **kw): def recursiveImmediateReindexObject(self, *args, **kw):
......
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