Commit 0f06c74b authored by Ivan Tyagov's avatar Ivan Tyagov

Enable default UI preference so default Wendelin gadget is shown.

parent 6dff29fe
......@@ -6,8 +6,12 @@ from Products.ERP5Type.Log import log
# Activate the knowledge pads on portal home to enable later the Wendelin
# Information gadget.
portal = context.getPortalObject()
configuration = portal.portal_preferences.getActivePreference()
configuration.setPreferredHtmlStyleAccessTab(True)
default_site_preference = getattr(portal.portal_preferences,
'default_site_preference', None)
if default_site_preference is not None:
default_site_preference.setPreferredHtmlStyleAccessTab(True)
if default_site_preference.getPreferenceState() == "disabled":
default_site_preference.enable()
# updata local roles (if any)
business_template = context.getSpecialiseValue()
......
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