[FIX] Fixed problem with pings and openerp.com web server.
authorniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 20 Dec 2010 10:19:58 +0000 (11:19 +0100)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 20 Dec 2010 10:19:58 +0000 (11:19 +0100)
bzr revid: nicolas.vanhoren@openerp.com-20101220101958-v8zxw8q1rewzsk5p

bin/addons/base/publisher_warranty/publisher_warranty.py
bin/tools/config.py

index 438ef7b..4fc5a37 100644 (file)
@@ -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:
index 0fe2664..0c47c2a 100644 (file)
@@ -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"])