Commit 05a7136c authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Use isIndexingRequired as the attribute for erp5-site

parent 20174619
...@@ -237,11 +237,11 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -237,11 +237,11 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
last_id = 0 last_id = 0
icon = 'portal.gif' icon = 'portal.gif'
# Default value, prevents error during upgrade # Default value, prevents error during upgrade
isIndexable = ConstantGetter('isIndexable', value=True)
# There can remain a lot a activities to be processed once all BT5 are # There can remain a lot a activities to be processed once all BT5 are
# installed, and scalability tests want a reliable way to know when the site # installed, and scalability tests want a reliable way to know when the site
# is ready to be tortured. # is ready to be tortured.
isPortalBeingCreated = ConstantGetter('isPortalBeingCreated', value=False) isPortalBeingCreated = ConstantGetter('isPortalBeingCreated', value=False)
isIndexingRequired = ConstantGetter('isIndexingRequired', value=True)
_properties = ( _properties = (
{ 'id':'title', { 'id':'title',
...@@ -1885,7 +1885,7 @@ class ERP5Generator(PortalGenerator): ...@@ -1885,7 +1885,7 @@ class ERP5Generator(PortalGenerator):
portal = self.klass(id=id) portal = self.klass(id=id)
# Make sure reindex will not be called until business templates # Make sure reindex will not be called until business templates
# will be installed # will be installed
setattr(portal, 'isIndexable', ConstantGetter('isIndexable', value=False)) setattr(portal, 'isIndexingRequired', ConstantGetter('isIndexingRequired', value=False))
# This is only used to refine log level. # This is only used to refine log level.
# Has no functional use, and should never have any: # Has no functional use, and should never have any:
......
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