diff options
author | Leif Johansson <leifj@sunet.se> | 2011-08-24 15:57:46 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-08-24 15:57:46 +0200 |
commit | 4c52ff378d531db28151d16f7153759a082b83a5 (patch) | |
tree | 70eb559ea13db7b0119be69d9069ac2f70173247 | |
parent | ff9e38489d9a60f3f37ddf159891ead9819a12ae (diff) |
encoding bug
-rw-r--r-- | src/meetingtools/ac/api.py | 11 |
1 files changed, 11 insertions, 0 deletions
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"); |