Commit ef7a2c39 authored by Gabriel Monnerat's avatar Gabriel Monnerat

ERP5ShortMessage: clean up

parent 4c92ca6c
......@@ -34,22 +34,16 @@ import string
from DateTime import DateTime
#Import Zope module
from AccessControl import ClassSecurityInfo, \
Unauthorized
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager, \
setSecurityManager, \
newSecurityManager
import zope.interface
from zLOG import LOG, INFO
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Security.ERP5UserManager import SUPER_USER
#Product Module
from Products.ERP5ShortMessage.Errors import SMSGatewayError
class DummyGateway(XMLObject):
......@@ -102,7 +96,6 @@ class DummyGateway(XMLObject):
#Send message (or test)
if test or self.isSimulationMode():
LOG("DummyGateway", INFO, params)
return None
else:
return self._generateRandomMessageId()
......
......@@ -33,8 +33,7 @@ import urllib
from DateTime import DateTime
#Import Zope module
from AccessControl import ClassSecurityInfo, \
Unauthorized
from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager, \
setSecurityManager, \
newSecurityManager
......@@ -195,7 +194,7 @@ class MobytGateway(XMLObject):
if message_type != "text":
assert quality == 'n', "This type of message require top level messsage quality"
assert message_type in self.getAllowedMessageType(), "Unknown message type"
param['operation'] = message_type.capitalize()
params['operation'] = message_type.capitalize()
#Send message (or test)
if test or self.isSimulationMode():
......
......@@ -32,7 +32,6 @@
# from Products.ERP5.Errors import DeferredCatalogError
from Products.PythonScripts.Utility import allow_class
from Products.CMFCore.WorkflowCore import WorkflowException
class SMSGatewayError(Exception):pass
......
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