summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pydevproject2
-rw-r--r--src/meetingtools/ac/api.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/.pydevproject b/.pydevproject
index e83fcdc..b06ce29 100644
--- a/.pydevproject
+++ b/.pydevproject
@@ -2,7 +2,7 @@
<?eclipse-pydev version="1.0"?>
<pydev_project>
-<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">meetingtools</pydev_property>
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
<pydev_variables_property name="org.python.pydev.PROJECT_VARIABLE_SUBSTITUTION">
<key>DJANGO_MANAGE_LOCATION</key>
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)