Commit f0a82666 authored by Jean-Paul Smets's avatar Jean-Paul Smets

new catalog uid asynchronous allocation - removal of flush_activity prop


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@897 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfe78b62
......@@ -60,7 +60,7 @@ class FolderMixIn(ExtensionClass.Base):
security.declareObjectProtected(Permissions.View)
security.declareProtected(Permissions.AddPortalContent, 'newContent')
def newContent(self, id=None, portal_type=None, id_group=None, default=None, method=None, commit_transaction=0, flush_activity=1, **kw):
def newContent(self, id=None, portal_type=None, id_group=None, default=None, method=None, immediate_reindex=0, **kw):
"""
Creates a new content
"""
......@@ -74,8 +74,7 @@ class FolderMixIn(ExtensionClass.Base):
id=new_id,
**kw)
new_instance = self[new_id]
if flush_activity: new_instance.flushActivity(invoke=1)
if commit_transaction: get_transaction().commit()
if immediate_reindex: self.immediateReindexObject()
return new_instance
security.declareProtected(Permissions.DeletePortalContent, 'deleteContent')
......
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