Commit 82eb5bc3 authored by Sebastien Robin's avatar Sebastien Robin

replace also (0) in the phone number

git-svn-id: https://svn.erp5.org/repos/experimental@1934 bc57dcba-3610-0410-ab4f-dc20bb96b918
parent a20e08e1
...@@ -95,7 +95,7 @@ class EssendexGateway(XMLObject): ...@@ -95,7 +95,7 @@ class EssendexGateway(XMLObject):
security.declarePrivate("_transformPhoneUrlToGatewayNumber") security.declarePrivate("_transformPhoneUrlToGatewayNumber")
def _transformPhoneUrlToGatewayNumber(self,phone): def _transformPhoneUrlToGatewayNumber(self,phone):
"""Transform url of phone number to a valid phone number (gateway side)""" """Transform url of phone number to a valid phone number (gateway side)"""
return phone.replace('tel:', '').replace('+','') return phone.replace('tel:', '').replace('+','').replace('(0)','').replace('-','')
security.declareProtected(Permissions.ManagePortal, 'send') security.declareProtected(Permissions.ManagePortal, 'send')
def send(self, text,recipient,sender=None, message_type="text",test=False,**kw): def send(self, text,recipient,sender=None, message_type="text",test=False,**kw):
......
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