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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
28a7b646
Commit
28a7b646
authored
Sep 05, 2019
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5ShortMessage: Fix undefined variables.
parent
db78e1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5ShortMessage/Document/EssendexGateway.py
product/ERP5ShortMessage/Document/EssendexGateway.py
+2
-2
No files found.
product/ERP5ShortMessage/Document/EssendexGateway.py
View file @
28a7b646
...
...
@@ -203,7 +203,7 @@ class EssendexGateway(XMLObject):
raise
SMSGatewayError
,
urllib
.
unquote
(
result
.
get
(
'Message'
,
"Impossible to get the message status"
))
security
.
declarePublic
(
'receive'
)
def
receive
(
self
,
REQUEST
):
def
receive
(
self
,
REQUEST
,
**
kw
):
"""Receive push notification"""
#XML is stored is BODY of request
...
...
@@ -328,7 +328,7 @@ class EssendexGateway(XMLObject):
if
result
[
'Result'
]
==
"OK"
:
#Push all message
type_mapping
=
{
'Text'
:
'text/plain'
}
now
=
=
DateTime
()
now
=
DateTime
()
for
key
,
value
in
result
.
items
():
if
type
(
key
)
==
int
:
reception_date
=
self
.
_parseDate
(
value
[
'ReceivedAt'
])
...
...
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