Browse Source

Fix flake 8

pull/128/head
Valentin Chemiere 10 years ago
committed by MonsieurB
parent
commit
ee0b9108c6
  1. 8
      smsclient_ovh/__openerp__.py
  2. 12
      smsclient_ovh/smsclient.py

8
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:
-------------

12
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':

Loading…
Cancel
Save