Browse Source

Use default timeout in get_param directly

Conflicts:
	dead_mans_switch_client/models/dead_mans_switch_client.py
pull/304/head
Sebastien Maillard 9 years ago
committed by Holger Brunn
parent
commit
36a968f5a2
  1. 4
      dead_mans_switch_client/models/dead_mans_switch_client.py

4
dead_mans_switch_client/models/dead_mans_switch_client.py

@ -64,9 +64,7 @@ class DeadMansSwitchClient(orm.AbstractModel):
logger.error('No server configured!') logger.error('No server configured!')
return return
timeout = self.env['ir.config_parameter'].get_param( timeout = self.env['ir.config_parameter'].get_param(
'dead_mans_switch_client.send_timeout')
if not timeout:
timeout = SEND_TIMEOUT
'dead_mans_switch_client.send_timeout', SEND_TIMEOUT)
data = self._get_data(cr, uid, context=context) data = self._get_data(cr, uid, context=context)
logger.debug('sending %s', data) logger.debug('sending %s', data)
urllib2.urlopen( urllib2.urlopen(

Loading…
Cancel
Save