Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Léo-Paul Géneau
erp5
Commits
5dee3616
Commit
5dee3616
authored
Mar 26, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if ignore_layout is specified, do not change skin at all.
otherwise the result is unpredictable.
parent
76919bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/Document/WebSite.py
product/ERP5/Document/WebSite.py
+5
-4
No files found.
product/ERP5/Document/WebSite.py
View file @
5dee3616
...
...
@@ -110,10 +110,11 @@ class WebSiteTraversalHook(Persistent):
self
.
_v_request
=
request
request
.
physicalPathToVirtualPath
=
self
.
_physicalPathToVirtualPath
# If a skin selection is defined in this web site, change the skin now.
skin_selection_name
=
container
.
getSkinSelectionName
()
if
skin_selection_name
and
request
.
get
(
'portal_skin'
,
None
)
is
None
:
container
.
getPortalObject
().
changeSkin
(
skin_selection_name
)
if
not
request
.
get
(
'ignore_layout'
,
None
):
# If a skin selection is defined in this web site, change the skin now.
skin_selection_name
=
container
.
getSkinSelectionName
()
if
skin_selection_name
and
request
.
get
(
'portal_skin'
,
None
)
is
None
:
container
.
getPortalObject
().
changeSkin
(
skin_selection_name
)
# Set default language if any
default_language
=
container
.
getDefaultAvailableLanguage
()
...
...
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