Commit 6dc8640b authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

testERP5Type: Do not use filter_dict attribute as its no longer available for Catalog objects

parent 6e2d477e
......@@ -3164,9 +3164,10 @@ class TestAccessControl(ERP5TypeTestCase):
def afterSetUp(self):
self.login()
self.getCatalogTool().getSQLCatalog().filter_dict['z_catalog_object_list'] \
= dict(filtered=1, type=[], expression=self.expression,
expression_instance=Expression(self.expression))
method = self.getCatalogTool().getSQLCatalog()._getOb('z_catalog_object_list')
method.setFiltered(1)
method.setExpression(self.expression)
method.setExpressionInstance(Expression(self.expression))
createZODBPythonScript(self.getSkinsTool().custom,
'Base_immediateReindexObject',
......
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