Commit 5a53b421 authored by Jérome Perrin's avatar Jérome Perrin

ShortMessage: do not check message_type with dummygateway

This is probably incorrect. I believe ERP5ShortMessage's message_type
handling has to be refactored. I guess this should not be part of the
send API but be a property set on the gateway instance in portal_sms
parent 25d12d27
...@@ -91,8 +91,9 @@ class DummyGateway(XMLObject): ...@@ -91,8 +91,9 @@ class DummyGateway(XMLObject):
Return message id Return message id
""" """
#Check messsage type #Check messsage type
if message_type not in self.getAllowedMessageType(): # XXX does it make sense to check message type in dummy gateway ? -jerome
raise ValueError, "Type of message in not allowed" #if message_type not in self.getAllowedMessageType():
# raise ValueError, "Type of message in not allowed"
#Send message (or test) #Send message (or test)
if test or self.isSimulationMode(): if test or self.isSimulationMode():
......
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