Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
wendelin
Commits
0f06c74b
Commit
0f06c74b
authored
Mar 17, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable default UI preference so default Wendelin gadget is shown.
parent
6dff29fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
...delin/BusinessConfiguration_afterWendelinConfiguration.py
+6
-2
No files found.
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
View file @
0f06c74b
...
@@ -6,8 +6,12 @@ from Products.ERP5Type.Log import log
...
@@ -6,8 +6,12 @@ from Products.ERP5Type.Log import log
# Activate the knowledge pads on portal home to enable later the Wendelin
# Activate the knowledge pads on portal home to enable later the Wendelin
# Information gadget.
# Information gadget.
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
configuration
=
portal
.
portal_preferences
.
getActivePreference
()
default_site_preference
=
getattr
(
portal
.
portal_preferences
,
configuration
.
setPreferredHtmlStyleAccessTab
(
True
)
'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)
# updata local roles (if any)
business_template
=
context
.
getSpecialiseValue
()
business_template
=
context
.
getSpecialiseValue
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment