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
Ludovic Kiefer
erp5
Commits
d4f60b7c
Commit
d4f60b7c
authored
Aug 25, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: source value may be none
parent
992b261b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getSourceDict.py
...ortal_skins/erp5_corporate_identity/Base_getSourceDict.py
+2
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getSourceDict.py
View file @
d4f60b7c
...
@@ -33,7 +33,7 @@ if source is None:
...
@@ -33,7 +33,7 @@ if source is None:
source_person_list
=
context
.
Base_getTemplateProxyParameter
(
parameter
=
"author"
,
source_data
=
None
)
or
[]
source_person_list
=
context
.
Base_getTemplateProxyParameter
(
parameter
=
"author"
,
source_data
=
None
)
or
[]
if
not
source_person_list
and
getattr
(
context
,
'getSourceDecisionValue'
,
None
):
if
not
source_person_list
and
getattr
(
context
,
'getSourceDecisionValue'
,
None
):
source_person_candidate
=
context
.
getSourceDecisionValue
()
source_person_candidate
=
context
.
getSourceDecisionValue
()
if
source_person_candidate
.
getPortalType
()
==
"Person"
:
if
source_person_candidate
and
source_person_candidate
.
getPortalType
()
==
"Person"
:
source_person_list
=
[
source_person_candidate
]
source_person_list
=
[
source_person_candidate
]
if
source_person_list
:
if
source_person_list
:
source_person
=
source_person_list
[
0
]
source_person
=
source_person_list
[
0
]
...
@@ -59,7 +59,7 @@ if source is None:
...
@@ -59,7 +59,7 @@ if source is None:
break
break
if
not
source_organisation_list
and
getattr
(
context
,
'getSourceDecisionValue'
,
None
):
if
not
source_organisation_list
and
getattr
(
context
,
'getSourceDecisionValue'
,
None
):
source_organisation_candidate
=
context
.
getSourceDecisionValue
()
source_organisation_candidate
=
context
.
getSourceDecisionValue
()
if
source_organisation_candidate
.
getPortalType
()
==
"Organisation"
:
if
source_organisation_candidate
and
source_organisation_candidate
.
getPortalType
()
==
"Organisation"
:
source_organisation_list
=
[
source_organisation_candidate
]
source_organisation_list
=
[
source_organisation_candidate
]
if
source_organisation_list
:
if
source_organisation_list
:
source_organisation
=
source_organisation_list
[
0
]
source_organisation
=
source_organisation_list
[
0
]
...
...
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