aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-03 16:59:33 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-03 19:36:26 +0200
commitff432f2e42e6ece77ee9539c25ca7f109f24cfcc (patch)
treee3c5ec05ece1dd86d460473f55c8412532ae289a /bot/ircmeeting/agenda.py
parentList proxies as voters (diff)
downloadcouncil-webapp-ff432f2e42e6ece77ee9539c25ca7f109f24cfcc.tar.gz
council-webapp-ff432f2e42e6ece77ee9539c25ca7f109f24cfcc.tar.bz2
council-webapp-ff432f2e42e6ece77ee9539c25ca7f109f24cfcc.zip
Bot posts voting results to webapp
Diffstat (limited to 'bot/ircmeeting/agenda.py')
-rw-r--r--bot/ircmeeting/agenda.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/ircmeeting/agenda.py b/bot/ircmeeting/agenda.py
index 7ee9beb..4f0bd00 100644
--- a/bot/ircmeeting/agenda.py
+++ b/bot/ircmeeting/agenda.py
@@ -89,3 +89,10 @@ class Agenda(object):
str = urllib.unquote(str)
result = json.loads(str)
return result
+
+ def post_result(self):
+ data = urllib.quote(json.dumps([self._votes]))
+ result_url = str.format(self.conf.result_url,
+ self.conf.voting_results_user,
+ self.conf.voting_results_password)
+ urllib.urlopen(result_url, data = data)