summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-25 13:34:24 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-25 13:34:24 +0200
commit6c82e893a94c1b58a9f93e2c9914ed92126d8c5f (patch)
tree261e625b5ef59a25c27485051efcb61e991f5db1
parent55bcd9875183813b2393f9cb33c9ec7cce13317e (diff)
encoding bug
-rw-r--r--src/meetingtools/ac/api.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index 2f694d7..3ea88fd 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -74,11 +74,10 @@ class ACPClient():
self._cache = {'login':{},'group':{}}
def request(self,method,p={},raise_error=False):
- if self.session:
- p['session'] = self.session
- p['action'] = method
-
u = []
+ u.append("action=%s" % method)
+ if self.session:
+ u.append("session=%s" % self.session)
for k,v in p.items():
value = v
if type(v) == int: