Skip to content

Commit

Permalink
Cleanup and removal of unused bits of code
Browse files Browse the repository at this point in the history
  • Loading branch information
flashingpumpkin committed Oct 3, 2011
1 parent 1d54e51 commit 80740d5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 539 deletions.
7 changes: 0 additions & 7 deletions socialregistration/admin.py

This file was deleted.

19 changes: 0 additions & 19 deletions socialregistration/auth.py
@@ -1,8 +1,4 @@
from django.contrib.auth.models import User
from django.contrib.sites.models import Site

#from socialregistration.models import (FacebookProfile, TwitterProfile,
# OpenIDProfile, LinkedInProfile)

class Auth(object):
supports_object_permissions = False
Expand All @@ -12,18 +8,3 @@ def get_user(self, user_id):
return User.objects.get(pk=user_id)
except User.DoesNotExist:
return None
#
#class FacebookAuth(Auth):
# def authenticate(self, uid=None):
# try:
# return FacebookProfile.objects.get(
# uid=uid,
# site=Site.objects.get_current()
# ).user
# except FacebookProfile.DoesNotExist:
# return None
#

#

#
3 changes: 1 addition & 2 deletions socialregistration/mixins.py
Expand Up @@ -6,11 +6,10 @@
from django.views.generic.base import TemplateResponseMixin
from socialregistration import signals


SESSION_KEY = getattr(settings, 'SOCIALREGISTRATION_SESSION_KEY', 'socialregistration:')

class CommonMixin(TemplateResponseMixin):

def import_attribute(self, path):
module = '.'.join(path.split('.')[:-1])
function = path.split('.')[-1]
Expand Down
14 changes: 0 additions & 14 deletions socialregistration/models.py
@@ -1,14 +0,0 @@
from django.db import models
from django.conf import settings

from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.contrib.sites.models import Site

from socialregistration.signals import login, connect






233 changes: 0 additions & 233 deletions socialregistration/utils.py

This file was deleted.

0 comments on commit 80740d5

Please sign in to comment.