From: jordan Date: Tue, 12 Jul 2011 22:09:28 +0000 (+0000) Subject: changing the twitter oauth2 token request urls X-Git-Tag: live~199 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/7b6ad329b55c67f72bd2008e83b5c092c437a8b5 changing the twitter oauth2 token request urls git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1114 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/settings/base.py b/forum/settings/base.py index 0e085e5..cc706bc 100644 --- a/forum/settings/base.py +++ b/forum/settings/base.py @@ -79,7 +79,7 @@ class BaseSetting(object): except KeyValue.DoesNotExist: kv = KeyValue(key=self.name) except Exception, e: - logging.error("Error savin setting to database (%s): %s" % (self.name, str(e))) + logging.error("Error saving setting to database (%s): %s" % (self.name, str(e))) return kv.value = value @@ -124,5 +124,3 @@ class Setting(object): Setting.emulators[deftype] = emul return emul(name, default, set, field_context) - - diff --git a/forum_modules/oauthauth/authentication.py b/forum_modules/oauthauth/authentication.py index 462e234..54a6b4f 100644 --- a/forum_modules/oauthauth/authentication.py +++ b/forum_modules/oauthauth/authentication.py @@ -15,9 +15,9 @@ class TwitterAuthConsumer(OAuthAbstractAuthConsumer): str(settings.TWITTER_CONSUMER_KEY), str(settings.TWITTER_CONSUMER_SECRET), "twitter.com", - "https://twitter.com/oauth/request_token", - "https://twitter.com/oauth/access_token", - "https://twitter.com/oauth/authorize", + "https://api.twitter.com/oauth/request_token", + "https://api.twitter.com/oauth/access_token", + "https://api.twitter.com/oauth/authorize", ) def get_user_data(self, key):