offline avatar offline committed cce0ab8

name errors fixed

Comments (0)

Files changed (3)

openauth/backends/__init__.py

 
 class BaseBackend(forms.Form):
 
-    PROFILE_MAPPING = property(lambda self: getattr(global_settings, "%s_PROFILE_MAPPING" % self.privider.upper(), {}))
+    PROFILE_MAPPING = property(lambda self: getattr(global_settings, "%s_PROFILE_MAPPING" % self.provider.upper(), {}))
 
     def __init__(self, *args, **kwargs):
         self._identity = None

openauth/backends/twitter.py

 
 class TwitterBackend(BaseBackend):
 
-    CONSUMER_KEY = property(lambda self: getattr(global_settings, "%s_CONSUMER_KEY" % self.privider.upper()))
-    CONSUMER_SECRET = property(lambda self: getattr(global_settings, "%s_CONSUMER_SECRET" % self.privider.upper()))
-    REQUEST_TOKEN_URL = property(lambda self: getattr(global_settings, "%s_REQUEST_TOKEN_URL" % self.privider.upper()))
-    ACCESS_TOKEN_URL = property(lambda self: getattr(global_settings, "%s_ACCESS_TOKEN_URL" % self.privider.upper()))
-    AUTHORIZE_URL = property(lambda self: getattr(global_settings, "%s_AUTHORIZE_URL" % self.privider.upper()))
+    CONSUMER_KEY = property(lambda self: getattr(global_settings, "%s_CONSUMER_KEY" % self.provider.upper()))
+    CONSUMER_SECRET = property(lambda self: getattr(global_settings, "%s_CONSUMER_SECRET" % self.provider.upper()))
+    REQUEST_TOKEN_URL = property(lambda self: getattr(global_settings, "%s_REQUEST_TOKEN_URL" % self.provider.upper()))
+    ACCESS_TOKEN_URL = property(lambda self: getattr(global_settings, "%s_ACCESS_TOKEN_URL" % self.provider.upper()))
+    AUTHORIZE_URL = property(lambda self: getattr(global_settings, "%s_AUTHORIZE_URL" % self.provider.upper()))
 
     def clean(self):
         consumer = OAuthConsumer(self.CONSUMER_KEY, self.CONSUMER_SECRET)

openauth/forms.py

 
 class SocialIDExtraForm(forms.Form):
     def __init__(self, *args, **kwargs):
-        fields = kwargs.pop("fields", None)
-        for key, value in fields:
+        fields = kwargs.pop("fields", {})
+        for key, value in fields.items():
             self.base_fields[key] = value
         super(SocialIDExtraForm, self).__init__(*args, **kwargs)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.