Commit b61c61b4 authored by Jérome Perrin's avatar Jérome Perrin

XXX tests: disable enable_full_indexing

This can hide bugs, especially when updating business templates.

TODO: if we drop this we can also drop the command line flag
parent c056523a
......@@ -1584,21 +1584,6 @@ def optimize():
self._filepath = self.get_filepath()
PythonScript._makeFunction = _makeFunction
# Do not reindex portal types sub objects by default
# We will probably disable reindexing for other types later
full_indexing_set = set(os.environ.get('enable_full_indexing', '').split(','))
if not 'portal_types' in full_indexing_set:
from Products.ERP5Type.Core.ActionInformation import ActionInformation
from Products.ERP5Type.Core.RoleInformation import RoleInformation
ActionInformation.isIndexable = RoleInformation.isIndexable = \
ConstantGetter('isIndexable', value=False)
if not 'portal_property_sheets' in full_indexing_set:
from Products.ERP5Type.Core.StandardProperty import StandardProperty
from Products.ERP5Type.Core.CategoryProperty import CategoryProperty
from Products.ERP5Type.mixin.constraint import ConstraintMixin
StandardProperty.isIndexable = CategoryProperty.isIndexable = \
ConstraintMixin.isIndexable = ConstantGetter('isIndexable', value=False)
optimize()
@onsetup
......
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