summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-24 16:10:42 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-24 16:10:42 +0200
commit1c297fdfc6456dff8e82cee8a564946d8b962279 (patch)
tree5f910c3fa436a6b320297431586598689ae058e6
parentb20a62e065371473eef88ae6578882b0ac0042ff (diff)
encoding bug
-rw-r--r--src/meetingtools/ac/api.py11
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");