In situations where a Plone site doesn't exist yet (e.g. when attempting to purge Solr during Plone site setup), there won't be a Plone registry, and queryUtility(IRegistry) will return None, and the updates_in_post_commit_enabled() helper will fail.
This change fixes this by returning True (the settings interface's default) in this case.
(Fixes an issue where a GEVER can't be set up locally with the [ ] Purge Solr flag any more)
In situations where a Plone site doesn't exist yet (e.g. when attempting to purge Solr during Plone site setup), there won't be a Plone registry, and
queryUtility(IRegistry)
will returnNone
, and theupdates_in_post_commit_enabled()
helper will fail.This change fixes this by returning
True
(the settings interface's default) in this case.(Fixes an issue where a GEVER can't be set up locally with the
[ ] Purge Solr
flag any more)