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
6ee4412c
Commit
6ee4412c
authored
Dec 21, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: change organisation default image to relative url
parent
c2f5bbbf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
...portal_skins/erp5_corporate_identity/Base_getThemeDict.py
+3
-7
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_getCustomProxyParameter.py
...rp5_corporate_identity/WebPage_getCustomProxyParameter.py
+7
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getThemeDict.py
View file @
6ee4412c
...
...
@@ -37,13 +37,9 @@ if theme is not None:
theme_logo_url
=
logo_prefix
+
theme
.
capitalize
()
try
:
theme_logo
=
context
.
restrictedTraverse
(
theme_logo_url
)
#context.log("status", "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
,
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
),))
except
LookupError
:
#__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
:
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_getCustomProxyParameter.py
View file @
6ee4412c
...
...
@@ -99,13 +99,19 @@ def populateOrganisationDict(my_organisation_list):
organisation_fax
=
organisation
.
getDefaultFax
()
organisation_link_list
=
organisation
.
objectValues
(
portal_type
=
"Link"
,
title
=
"Corporate Web Site"
)
organisation_bank_list
=
organisation
.
objectValues
(
portal_type
=
"Bank Account"
,
title
=
"Default Bank Account"
)
organisation_default_image
=
organisation
.
getDefaultImage
()
output_dict
[
"organisation_title"
]
=
organisation
.
getTitle
()
output_dict
[
"logo_url"
]
=
organisation
.
getDefaultImageAbsoluteUrl
()
or
err
(
"logo_url"
)
output_dict
[
"corporate_name"
]
=
organisation
.
getCorporateName
()
or
err
(
"corporate name"
)
output_dict
[
"social_capital"
]
=
organisation
.
getSocialCapital
()
or
err
(
"social capital"
)
output_dict
[
"activity_code"
]
=
organisation
.
getActivityCode
()
or
err
(
"activitiy code"
)
#output_dict["logo_url"] = organisation.getDefaultImageAbsoluteUrl() or err("logo_url")
if
organisation_default_image
is
not
None
:
output_dict
[
"logo_url"
]
=
organisation_default_image
.
getRelativeUrl
()
else
:
output_dict
[
"logo_url"
]
=
err
(
"logo_url"
)
# XXX we should have social_capital_currency and corporate_registration_court
output_dict
[
"social_capital_currency"
]
=
err
(
"social capital"
)
output_dict
[
"corporate_registration_code"
]
=
err
(
"corporate_registration_code"
)
...
...
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