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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
f9b251b5
Commit
f9b251b5
authored
Sep 19, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_jio_connector: ensure that Portal Types are defined before filtering
parent
aacf0773
Pipeline
#36947
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_jio_connector/DocumentTemplateItem/portal_components/document.erp5.JioApiConnector.py
...teItem/portal_components/document.erp5.JioApiConnector.py
+5
-4
No files found.
bt5/erp5_jio_connector/DocumentTemplateItem/portal_components/document.erp5.JioApiConnector.py
View file @
f9b251b5
...
@@ -97,20 +97,21 @@ class JioApiConnector(XMLObject):
...
@@ -97,20 +97,21 @@ class JioApiConnector(XMLObject):
"""
"""
if
portal_type
:
if
portal_type
:
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
if
tester
.
isMatchingProvider
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
if
tester
.
isMatchingProvider
()
and
tester
.
getPortalTypeFilterList
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
else
:
else
:
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
if
tester
.
isMatchingProvider
()]
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
if
tester
.
isMatchingProvider
()
and
tester
.
getPortalTypeFilterList
()
is
None
]
def
getCheckingTesterList
(
self
,
portal_type
):
def
getCheckingTesterList
(
self
,
portal_type
):
"""
"""
Returns list of checking providers for a given Portal Type.
Returns list of checking providers for a given Portal Type.
"""
"""
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
if
tester
.
isCheckingProvider
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
if
tester
.
isCheckingProvider
()
and
tester
.
getPortalTypeFilterList
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
def
getUpdatingTesterList
(
self
,
portal_type
):
def
getUpdatingTesterList
(
self
,
portal_type
):
"""
"""
Returns list of updating providers for a given Portal Type.
Returns list of updating providers for a given Portal Type.
"""
"""
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
return
[
tester
for
tester
in
self
.
objectValues
(
portal_type
=
"jIO API Equality Tester"
)
\
if
tester
.
isUpdatingProvider
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
if
tester
.
isUpdatingProvider
()
and
tester
.
getPortalTypeFilterList
()
and
portal_type
in
tester
.
getPortalTypeFilterList
()]
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