From 83ea0894f6b64938adf09dc22739528f2937421e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 24 Aug 2011 14:41:42 +0200 Subject: encoding bug --- src/meetingtools/ac/api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/meetingtools') diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index cd03730..bb7a477 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -78,7 +78,11 @@ class ACPClient(): p['action'] = method for k,v in p.items(): - p[k] = ("%s" % v).encode('utf-8') + #p[k] = ("%s" % v).encode('utf-8') + if v is int: + p[k] = "%d" % v + else: + p[k] = v.encode('utf-8') url = self.url + '?' + urlencode(p) -- cgit v1.1