Commit 2d50c75f authored by Gabriel Monnerat's avatar Gabriel Monnerat

MobytGateway: Don't print params in logs because will print login and password

parent f95bda8a
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment