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): ...@@ -60,7 +60,7 @@ class FolderMixIn(ExtensionClass.Base):
security.declareObjectProtected(Permissions.View) security.declareObjectProtected(Permissions.View)
security.declareProtected(Permissions.AddPortalContent, 'newContent') 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 Creates a new content
""" """
...@@ -74,8 +74,7 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -74,8 +74,7 @@ class FolderMixIn(ExtensionClass.Base):
id=new_id, id=new_id,
**kw) **kw)
new_instance = self[new_id] new_instance = self[new_id]
if flush_activity: new_instance.flushActivity(invoke=1) if immediate_reindex: self.immediateReindexObject()
if commit_transaction: get_transaction().commit()
return new_instance return new_instance
security.declareProtected(Permissions.DeletePortalContent, 'deleteContent') 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