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
...@@ -1559,7 +1559,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -1559,7 +1559,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
""" """
root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1)) root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1))
if self.isIndexable and root_indexable: if self.isIndexable and root_indexable:
self.activate().immediateReindexObject(*args, **kw) self.activate(**kw).immediateReindexObject(*args, **kw)
def immediateQueueCataloggedObject(self, *args, **kw): def immediateQueueCataloggedObject(self, *args, **kw):
if self.isIndexable: if self.isIndexable:
...@@ -1573,7 +1573,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -1573,7 +1573,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
Index an object in a deferred manner. Index an object in a deferred manner.
""" """
if self.isIndexable: if self.isIndexable:
self.activate().immediateQueueCataloggedObject(*args, **kw) LOG('queueCataloggedObject', 0, 'activate immediateQueueCataloggedObject on %s' % self.getPath())
self.activate(**kw).immediateQueueCataloggedObject(*args, **kw)
security.declarePublic('recursiveQueueCataloggedObject') security.declarePublic('recursiveQueueCataloggedObject')
recursiveQueueCataloggedObject = queueCataloggedObject recursiveQueueCataloggedObject = queueCataloggedObject
......
...@@ -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