|
@ -57,9 +57,7 @@ class DeadMansSwitchClient(models.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() |
|
|
data = self._get_data() |
|
|
logger.debug('sending %s', data) |
|
|
logger.debug('sending %s', data) |
|
|
urllib2.urlopen( |
|
|
urllib2.urlopen( |
|
|