diff options
| author | Olivier Dony <odo@openerp.com> | 2014-02-18 19:26:43 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-02-18 19:26:43 +0100 |
| commit | 723b083cf5e51beec166059350466e5504db46c9 (patch) | |
| tree | 07c99c49b30f9e92f1b416da407dc3341eb491b8 /addons/pad/py_etherpad | |
| parent | ed355097fec96008b5591dbfdd407ca96906ffc7 (diff) | |
[FIX] pad: partial revert of global replace of urllib.urlencode() by werkzeug's version, this one was useful to handle sequences
The API of werkzeug's version does not accept a boolean
as the second argument, so this crashes.
bzr revid: odo@openerp.com-20140218182643-a13mvcmsav195dfx
Diffstat (limited to 'addons/pad/py_etherpad')
| -rw-r--r-- | addons/pad/py_etherpad/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/pad/py_etherpad/__init__.py b/addons/pad/py_etherpad/__init__.py index fce51d36890..0db607fe16f 100644 --- a/addons/pad/py_etherpad/__init__.py +++ b/addons/pad/py_etherpad/__init__.py @@ -1,7 +1,7 @@ """Module to talk to EtherpadLite API.""" import json -import werkzeug.urls +import urllib import urllib2 @@ -32,7 +32,7 @@ class EtherpadLiteClient: params = arguments or {} params.update({'apikey': self.apiKey}) - data = werkzeug.url_encode(params, True) + data = urllib.urlencode(params, True) try: opener = urllib2.build_opener() |
