]> git.openstreetmap.org Git - osqa.git/commitdiff
changing the twitter oauth2 token request urls
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 12 Jul 2011 22:09:28 +0000 (22:09 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 12 Jul 2011 22:09:28 +0000 (22:09 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1114 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/settings/base.py
forum_modules/oauthauth/authentication.py

index 0e085e56933e1a245b87a669bbd2b7773c650ae0..cc706bcd49285082824b96862ed04c4c263263ee 100644 (file)
@@ -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)
-
-
index 462e234e7ff60300865c11caeab945724d3c7218..54a6b4f5adfbb7006fd644b1b5310ae72f6b4710 100644 (file)
@@ -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):