Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
df2ec7d4
Commit
df2ec7d4
authored
Mar 31, 2017
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Have default Page renderer use TypeBaseMethod for default page
parent
fba3e513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
...5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
+5
-1
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
View file @
df2ec7d4
...
@@ -26,7 +26,11 @@ for language in available_language_set:
...
@@ -26,7 +26,11 @@ for language in available_language_set:
else
:
else
:
website_url_set
[
language
]
=
re
.
sub
(
website_url_pattern
,
r'%s/%s/\1'
%
(
root_website_url
,
language
),
web_section
.
absolute_url
())
website_url_set
[
language
]
=
re
.
sub
(
website_url_pattern
,
r'%s/%s/\1'
%
(
root_website_url
,
language
),
web_section
.
absolute_url
())
return
default_web_page
.
WebPage_viewAsWeb
(
mapping_dict
=
{
view_as_web_method
=
default_web_page
.
getTypeBasedMethod
(
"viewAsWeb"
,
fallback_script_id
=
"WebPage_viewAsWeb"
)
return
view_as_web_method
(
mapping_dict
=
{
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
"worklist"
),
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
"worklist"
),
"application_title"
:
web_section
.
getLayoutProperty
(
"configuration_application_title"
,
default
=
"ERP5"
),
"application_title"
:
web_section
.
getLayoutProperty
(
"configuration_application_title"
,
default
=
"ERP5"
),
"action_view"
:
web_section
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
"object_view"
),
"action_view"
:
web_section
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
"object_view"
),
...
...
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