From a319070a57c250ce74ac149a467b1ff4c5b424c3 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 1 Oct 2009 00:50:03 -0400 Subject: [PATCH] some old uncommitted changes --- disqus.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/disqus.py b/disqus.py index 8bc3cc5..1d69399 100644 --- a/disqus.py +++ b/disqus.py @@ -46,7 +46,7 @@ class Post(object): def moderate(self, action): params = {'user_api_key':self.user_api_key, 'post_id':self.id, 'action':action} - apicall('moderate_post', params, 'POST') + return apicall('moderate_post', params, 'POST') class Thread(object): def __init__(self, d, user_api_key, forum_api_key): @@ -97,14 +97,15 @@ class Thread(object): return apicall('create_post', params, 'POST') class Forum(object): - def __init__(self, forum_api_key=None, id=None, name=None, shortname=None, - created_at=None, description=None, user_api_key=None): - self.__dict__['api_key'] = forum_api_key + def __init__(self, user_api_key, id, name=None, shortname=None, + created_at=None, description=None, forum_api_key=None): + self.user_api_key = user_api_key self.id = id self.name = name self.shortname = shortname self.created_at = created_at - self.user_api_key = user_api_key + self.description = description + self.__dict__['api_key'] = forum_api_key @property def api_key(self):