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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
5404964a
Commit
5404964a
authored
Jan 15, 2025
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_maileva_connector: Ensure it we dont have duplicated connectors
parent
6620d328
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
bt5/erp5_maileva_connector/SkinTemplateItem/portal_skins/erp5_maileva_connector/ERP5Site_getAvailableMailevaSOAPConnector.py
...va_connector/ERP5Site_getAvailableMailevaSOAPConnector.py
+11
-6
No files found.
bt5/erp5_maileva_connector/SkinTemplateItem/portal_skins/erp5_maileva_connector/ERP5Site_getAvailableMailevaSOAPConnector.py
View file @
5404964a
maileva_connector
=
context
.
portal_catalog
.
getResultValue
(
maileva_connector
_list
=
context
.
portal_catalog
(
portal_type
=
'Maileva SOAP Connector'
,
portal_type
=
'Maileva SOAP Connector'
,
reference
=
reference
,
validation_state
=
'validated'
,
validation_state
=
'validated'
)
limit
=
2
)
if
not
maileva_connector
:
raise
ValueError
(
'Maileav soap connector is not defined'
)
# Ensure there is no duplication.
return
maileva_connector
if
not
len
(
maileva_connector_list
):
raise
ValueError
(
'Maileva soap connector is not defined'
)
elif
len
(
maileva_connector_list
)
!=
1
:
raise
ValueError
(
'More them one Maileva soap connector was found!'
)
return
maileva_connector_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