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
4dd8c8ff
Commit
4dd8c8ff
authored
Dec 21, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: make remaining urls relative to pass tests
parent
6ee4412c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
...portal_skins/erp5_corporate_identity/Base_getThemeDict.py
+3
-4
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
View file @
4dd8c8ff
...
@@ -37,20 +37,19 @@ if theme is not None:
...
@@ -37,20 +37,19 @@ if theme is not None:
theme_logo_url
=
logo_prefix
+
theme
.
capitalize
()
theme_logo_url
=
logo_prefix
+
theme
.
capitalize
()
try
:
try
:
theme_logo
=
context
.
restrictedTraverse
(
theme_logo_url
)
theme_logo
=
context
.
restrictedTraverse
(
theme_logo_url
)
theme_logo_relative_url
=
theme_logo
.
getRelativeUrl
()
theme_logo_description
=
theme_logo
.
getDescription
()
except
LookupError
:
except
LookupError
:
#__traceback_info__ = "theme_logo_url: %r" % (theme_logo_url,)
#__traceback_info__ = "theme_logo_url: %r" % (theme_logo_url,)
#raise Exception("%s and context: %r" % (theme_logo_url, context.restrictedTraverse(theme_logo_url),))
#raise Exception("%s and context: %r" % (theme_logo_url, context.restrictedTraverse(theme_logo_url),))
theme_logo
=
None
theme_logo
=
None
if
theme_logo
:
theme_logo_description
=
theme_logo
.
getDescription
()
if
theme
is
None
:
if
theme
is
None
:
theme
=
"default"
theme
=
"default"
theme_dict
=
{}
theme_dict
=
{}
theme_dict
[
"theme"
]
=
theme
theme_dict
[
"theme"
]
=
theme
theme_dict
[
"theme_logo_description"
]
=
theme_logo_description
theme_dict
[
"theme_logo_description"
]
=
theme_logo_description
theme_dict
[
"theme_logo_url"
]
=
(
theme_logo_
url
+
param
)
if
theme_logo
_url
is
not
None
else
context
.
Base_getCustomTemplateParameter
(
"fallback_image"
)
theme_dict
[
"theme_logo_url"
]
=
(
theme_logo_
relative_url
+
param
)
if
theme_logo_relative
_url
is
not
None
else
context
.
Base_getCustomTemplateParameter
(
"fallback_image"
)
theme_dict
[
"template_css_url"
]
=
css_path
+
pdf
+
".css"
theme_dict
[
"template_css_url"
]
=
css_path
+
pdf
+
".css"
theme_dict
[
"fallback_img_url"
]
=
context
.
Base_getCustomTemplateParameter
(
"fallback_image"
)
or
blank
theme_dict
[
"fallback_img_url"
]
=
context
.
Base_getCustomTemplateParameter
(
"fallback_image"
)
or
blank
theme_dict
[
"theme_css_font_list"
]
=
context
.
Base_getCustomTemplateParameter
(
font
)
or
[]
theme_dict
[
"theme_css_font_list"
]
=
context
.
Base_getCustomTemplateParameter
(
font
)
or
[]
...
...
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