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
c2f5bbbf
Commit
c2f5bbbf
authored
Dec 21, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: raise on successful traverse, too
parent
e8d886c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
...portal_skins/erp5_corporate_identity/Base_getThemeDict.py
+6
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
View file @
c2f5bbbf
...
...
@@ -37,11 +37,15 @@ if theme is not None:
theme_logo_url
=
logo_prefix
+
theme
.
capitalize
()
try
:
theme_logo
=
context
.
restrictedTraverse
(
theme_logo_url
)
except
LookupError
:
#context.log("status", "theme_logo_url: %r" % (theme_logo_url,))
__traceback_info__
=
"theme_logo_url: %r"
%
(
theme_logo_url
,)
raise
Exception
(
"theme_logo_url: %r"
%
(
theme_logo_url
,))
raise
Exception
(
"%s and context: %r"
%
(
theme_logo_url
,
theme_logo
,))
#except LookupError:
except
:
__traceback_info__
=
"theme_logo_url: %r"
%
(
theme_logo_url
,)
raise
Exception
(
"%s and context: %r"
%
(
theme_logo_url
,
context
.
restrictedTraverse
(
theme_logo_url
),))
theme_logo
=
None
if
theme_logo
:
theme_logo_description
=
theme_logo
.
getDescription
()
if
theme
is
None
:
...
...
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