Commit 5b1acbb1 authored by Boxiang Sun's avatar Boxiang Sun

Remove Base_immediateReindexObject

Replase it by add reindex_on_commit=True in newContent
parent 461b4aac
...@@ -3263,14 +3263,8 @@ class TestAccessControl(ERP5TypeTestCase): ...@@ -3263,14 +3263,8 @@ class TestAccessControl(ERP5TypeTestCase):
method.setExpression(self.expression) method.setExpression(self.expression)
method.setExpressionInstance(Expression(self.expression)) method.setExpressionInstance(Expression(self.expression))
createZODBPythonScript(self.getSkinsTool().custom,
'Base_immediateReindexObject',
'',
'context.immediateReindexObject()'
).manage_proxy(('Manager',))
def test(self): def test(self):
self.portal.person_module.newContent().Base_immediateReindexObject() self.portal.person_module.newContent(reindex_on_commit=True)
def test_suite(): def test_suite():
......
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