diff options
| author | Denis Ledoux <dle@openerp.com> | 2014-01-29 13:13:16 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@openerp.com> | 2014-01-29 13:13:16 +0100 |
| commit | 0306adbfe3e8a342d2fff93f9cf2895992ce0896 (patch) | |
| tree | bf968d9cebce0af986eb3ae45f246d43c110df2e /addons/mail/update.py | |
| parent | 911d95eabd7b6376b3608f48478e44441a03794e (diff) | |
[FIX] *: using werkzeug.url_encode instead of urllib.urlencode because urliblib.encode does not accept unicode
bzr revid: dle@openerp.com-20140129121316-b5f5e4r6fz9l80kq
Diffstat (limited to 'addons/mail/update.py')
| -rw-r--r-- | addons/mail/update.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/update.py b/addons/mail/update.py index b5938e36c3b..6969b1479b1 100644 --- a/addons/mail/update.py +++ b/addons/mail/update.py @@ -2,7 +2,7 @@ import datetime import logging import sys -import urllib +import werkzeug.urls import urllib2 import openerp @@ -59,7 +59,7 @@ def get_sys_logs(self, cr, uid): add_arg = {"timeout":30} if sys.version_info >= (2,6) else {} arguments = {'arg0': msg, "action": "update",} - arguments_raw = urllib.urlencode(arguments) + arguments_raw = werkzeug.url_encode(arguments) url = config.get("publisher_warranty_url") |
