Commit d2c8a922 by Jérome Perrin

Make sure we can display ZMI when preference tool cannot be used.

1 parent 69684aac
from App.Management import Navigation
from ZODB.POSException import ConflictError
from Acquisition import aq_parent
import json
......@@ -9,7 +10,16 @@ def manage_page_footer(self):
return default
portal = self.getPortalObject()
if portal.portal_preferences.getPreference('preferred_source_code_editor') != 'ace':
# Make sure we are able to display ZMI when preference tool / catalog does
# not work.
editor = portal.portal_preferences.getPreference('preferred_source_code_editor')
except ConflictError:
editor = None
if editor != 'ace':
return default
# REQUEST['PUBLISHED'] can be the form in the acquisition context of the
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!