[FIX] Fixed problem with pings and openerp.com web server.
bzr revid: nicolas.vanhoren@openerp.com-20101220101958-v8zxw8q1rewzsk5p
This commit is contained in:
parent
8bf22a19e5
commit
70c57a70a9
|
@ -317,8 +317,10 @@ def get_sys_logs(cr, uid):
|
|||
}
|
||||
|
||||
add_arg = {"timeout":30} if sys.version_info >= (2,6) else {}
|
||||
uo = urllib2.urlopen(config.get("publisher_warranty_url"),
|
||||
urllib.urlencode({'arg0': msg, "action": "update",}), **add_arg)
|
||||
arguments = {'arg0': msg, "action": "update",}
|
||||
arguments_raw = urllib.urlencode(arguments)
|
||||
url = config.get("publisher_warranty_url")
|
||||
uo = urllib2.urlopen(url, arguments_raw, **add_arg)
|
||||
try:
|
||||
submit_result = uo.read()
|
||||
finally:
|
||||
|
|
|
@ -91,7 +91,7 @@ class configmanager(object):
|
|||
'static_http_url_prefix': None,
|
||||
'secure_cert_file': 'server.cert',
|
||||
'secure_pkey_file': 'server.pkey',
|
||||
'publisher_warranty_url': 'http://services.openerp.com/publisher-warranty',
|
||||
'publisher_warranty_url': 'http://services.openerp.com/publisher-warranty/',
|
||||
}
|
||||
|
||||
self.blacklist_for_save = set(["publisher_warranty_url"])
|
||||
|
|
Loading…
Reference in New Issue