diff --git a/smsclient_ovh/__openerp__.py b/smsclient_ovh/__openerp__.py index 04a6ac2..9858e16 100644 --- a/smsclient_ovh/__openerp__.py +++ b/smsclient_ovh/__openerp__.py @@ -29,7 +29,13 @@ "smsclient_core", ], "author": "Julius Network Solutions,SYLEAM,OpenERP SAi,Akretion", - 'images': ['images/sms.jpeg', 'images/gateway.jpeg', 'images/gateway_access.jpeg','images/client.jpeg','images/send_sms.jpeg'], + 'images': [ + 'images/sms.jpeg', + 'images/gateway.jpeg', + 'images/gateway_access.jpeg', + 'images/client.jpeg', + 'images/send_sms.jpeg' + ], "description": """ SMS Client module provides: ------------- diff --git a/smsclient_ovh/smsclient.py b/smsclient_ovh/smsclient.py index 8e1e878..598eb39 100644 --- a/smsclient_ovh/smsclient.py +++ b/smsclient_ovh/smsclient.py @@ -20,18 +20,12 @@ # ############################################################################### -from openerp import fields, api, models, _ +from openerp import api, models, _ from openerp.exceptions import Warning import urllib import logging _logger = logging.getLogger(__name__) -try: - from SOAPpy import WSDL -except: - _logger.warning("ERROR IMPORTING SOAPpy, if not installed, please install" - "it: e.g.: apt-get install python-soappy") - class smsclient(models.Model): _inherit = "sms.smsclient" @@ -66,8 +60,8 @@ class smsclient(models.Model): gateway = data.gateway if gateway: if not self._check_permissions(gateway): - raise Warning(_('You have no permission to access %s ') - % (gateway.name,)) + raise Warning(_('You have no permission to access %s ') % + (gateway.name, )) url = gateway.url name = url if gateway.method == 'ovh http':