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
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
Laurent S
erp5
Commits
2d50c75f
Commit
2d50c75f
authored
Nov 06, 2014
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MobytGateway: Don't print params in logs because will print login and password
parent
f95bda8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
product/ERP5ShortMessage/Document/MobytGateway.py
product/ERP5ShortMessage/Document/MobytGateway.py
+0
-6
No files found.
product/ERP5ShortMessage/Document/MobytGateway.py
View file @
2d50c75f
...
...
@@ -49,7 +49,6 @@ from Products.ERP5Security.ERP5UserManager import SUPER_USER
from
Products.ERP5ShortMessage.Errors
import
SMSGatewayError
class
MobytGateway
(
XMLObject
):
"""Mobyt SMS Gateway Implementation"""
...
...
@@ -57,7 +56,6 @@ class MobytGateway(XMLObject):
portal_type
=
'Mobyt Gateway'
security
=
ClassSecurityInfo
()
add_permission
=
Permissions
.
AddPortalContent
zope
.
interface
.
implements
(
interfaces
.
ISmsGateway
)
...
...
@@ -204,7 +202,6 @@ class MobytGateway(XMLObject):
LOG
(
"MobytGateway"
,
INFO
,
params
)
result
=
{
'status'
:
"Test"
}
else
:
LOG
(
'MobytGateway, sending to with params'
,
0
,
(
base_url
,
params
))
params
=
urllib
.
urlencode
(
params
)
page
=
urllib
.
urlopen
(
base_url
,
params
)
result
=
self
.
_fetchSendResponseAsDict
(
page
)
...
...
@@ -270,8 +267,6 @@ class MobytGateway(XMLObject):
#Restore orinal user
setSecurityManager
(
sm
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'notifyReception'
)
def
notifyReception
(
self
,
sender
,
text
,
message_id
):
"""The gateway inform what we ha a new message.
...
...
@@ -283,7 +278,6 @@ class MobytGateway(XMLObject):
#return number
return
"+%s(%s)-%s"
%
(
number
[
0
:
2
],
0
,
number
[
2
:])
#Create the new sms in activities
self
.
activate
(
activity
=
'SQLQueue'
).
SMSTool_pushNewSMS
(
message_id
=
message_id
,
...
...
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