From 86a269d251e1689e2cc006e14e2e4ad20312e5e2 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 24 Aug 2011 15:05:53 +0200 Subject: encoding bug --- src/meetingtools/ac/api.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index 7fcc5fc..1d25faa 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -77,20 +77,7 @@ class ACPClient(): p['session'] = self.session p['action'] = method - for k,v in p.items(): - #p[k] = ("%s" % v).encode('utf-8') - logger.debug("----") - logger.debug(repr(k)) - logger.debug(repr(v)) - logger.debug(type(v)) - if type(v) == int: - p[k] = "%d" % v - elif type(v) == unicode: - p[k] = v - elif type(v) == str: - p[k] = v.decode('utf-8') - else: - p[k] = repr(v) + url = self.url + '?' + urlencode(p) -- cgit v1.1