Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
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
Romain Courteaud
slapos.core
Commits
e3cdef96
Commit
e3cdef96
authored
Feb 12, 2024
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_payzen: change coding style
parent
ee4a3cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/Currency_getIntegrationMapping.py
...tal_skins/slapos_payzen/Currency_getIntegrationMapping.py
+4
-4
No files found.
master/bt5/slapos_payzen/SkinTemplateItem/portal_skins/slapos_payzen/Currency_getIntegrationMapping.py
View file @
e3cdef96
...
...
@@ -3,10 +3,10 @@ relative_url = context.getRelativeUrl()
if
relative_url
==
'currency_module/CNY'
:
integration_site
=
portal
.
restrictedTraverse
(
portal
.
portal_preferences
.
getPreferredWechatIntegrationSite
())
el
se
:
el
if
relative_url
==
'currency_module/EUR'
:
integration_site
=
portal
.
restrictedTraverse
(
portal
.
portal_preferences
.
getPreferredPayzenIntegrationSite
())
else
:
# Only EUR is supported for now
assert
relative_url
in
(
'currency_module/EUR'
,
'currency_module/CNY'
)
# Only EUR is supported for now
assert
relative_url
in
(
'currency_module/EUR'
,
'currency_module/CNY'
)
return
integration_site
.
getMappingFromCategory
(
'resource/%s'
%
relative_url
).
split
(
'/'
,
1
)[
-
1
]
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