From 4c52ff378d531db28151d16f7153759a082b83a5 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 24 Aug 2011 15:57:46 +0200 Subject: encoding bug --- src/meetingtools/ac/api.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index 0ecc9eb..2d109bf 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -77,6 +77,17 @@ 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 + else: + p[k] = v.encode('utf-8') + url = self.url + '?' + urlencode(p) h = httplib2.Http(tempfile.gettempdir()+os.sep+".cache"); -- cgit v1.1