|
|
@ -63,8 +63,9 @@ class DeadMansSwitchClient(orm.AbstractModel): |
|
|
|
if not url: |
|
|
|
logger.error('No server configured!') |
|
|
|
return |
|
|
|
timeout = self.env['ir.config_parameter'].get_param( |
|
|
|
'dead_mans_switch_client.send_timeout', SEND_TIMEOUT) |
|
|
|
timeout = self.pool['ir.config_parameter'].get_param( |
|
|
|
cr, uid, 'dead_mans_switch_client.send_timeout', SEND_TIMEOUT, |
|
|
|
context=context) |
|
|
|
data = self._get_data(cr, uid, context=context) |
|
|
|
logger.debug('sending %s', data) |
|
|
|
urllib2.urlopen( |
|
|
@ -78,4 +79,4 @@ class DeadMansSwitchClient(orm.AbstractModel): |
|
|
|
{ |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}), |
|
|
|
timeout) |
|
|
|
timeout=timeout) |