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
137
Merge Requests
137
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
d3d302b2
Commit
d3d302b2
authored
Jan 07, 2025
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payzen_secure_payment: Start to test for CodingStyle
parent
18614ea8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
bt5/erp5_payzen_secure_payment/DocumentTemplateItem/portal_components/document.erp5.PayzenService.py
...lateItem/portal_components/document.erp5.PayzenService.py
+11
-10
bt5/erp5_payzen_secure_payment/bt/skip_coding_style_test
bt5/erp5_payzen_secure_payment/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_payzen_secure_payment/DocumentTemplateItem/portal_components/document.erp5.PayzenService.py
View file @
d3d302b2
...
...
@@ -12,7 +12,7 @@ else:
import
datetime
import
os
import
time
import
six
import
requests
from
Products.ERP5Type.Core.Workflow
import
ValidationFailed
from
Products.ERP5Type.Utils
import
str2bytes
,
bytes2str
...
...
@@ -24,20 +24,21 @@ if 'TZ' in os.environ:
tz
=
os
.
environ
[
'TZ'
]
os
.
environ
[
'TZ'
]
=
'UTC'
time
.
tzset
()
def
setUTCTimeZone
(
fn
):
def
wrapped
(
*
args
,
**
kwargs
):
present
=
False
tz
=
None
tz_
present
=
False
environ_
tz
=
None
if
'TZ'
in
os
.
environ
:
present
=
True
tz
=
os
.
environ
[
'TZ'
]
tz_
present
=
True
environ_
tz
=
os
.
environ
[
'TZ'
]
os
.
environ
[
'TZ'
]
=
'UTC'
time
.
tzset
()
try
:
return
fn
(
*
args
,
**
kwargs
)
finally
:
if
present
:
os
.
environ
[
'TZ'
]
=
tz
if
tz_
present
:
os
.
environ
[
'TZ'
]
=
environ_
tz
else
:
del
(
os
.
environ
[
'TZ'
])
time
.
tzset
()
...
...
@@ -189,14 +190,14 @@ class PayzenService(XMLObject, PayzenREST):
def
notifySuccess
(
self
,
REQUEST
=
None
,
**
kw
):
"""See Payment Service Interface Documentation"""
raise
NotImplementedError
return
self
.
_getTypeBasedMethod
(
"acceptPayment"
)(
**
kw
)
#
return self._getTypeBasedMethod("acceptPayment")(**kw)
def
notifyFail
(
self
,
REQUEST
=
None
,
**
kw
):
"""See Payment Service Interface Documentation"""
raise
NotImplementedError
return
self
.
_getTypeBasedMethod
(
"failInPayment"
)(
**
kw
)
#
return self._getTypeBasedMethod("failInPayment")(**kw)
def
notifyCancel
(
self
,
REQUEST
=
None
,
**
kw
):
"""See Payment Service Interface Documentation"""
raise
NotImplementedError
return
self
.
_getTypeBasedMethod
(
"abortPayment"
)(
**
kw
)
#
return self._getTypeBasedMethod("abortPayment")(**kw)
bt5/erp5_payzen_secure_payment/bt/skip_coding_style_test
deleted
100644 → 0
View file @
18614ea8
1
\ No newline at end of file
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