Skip to content

Commit

Permalink
Remove utils module
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Aug 29, 2013
1 parent e68fcc0 commit 9c4029c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
12 changes: 0 additions & 12 deletions social_auth/utils.py

This file was deleted.

13 changes: 11 additions & 2 deletions social_auth/views.py
@@ -1,13 +1,22 @@
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.views.decorators.csrf import csrf_exempt, csrf_protect
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST

from social.utils import setting_name
from social.actions import do_auth, do_complete, do_disconnect
from social.apps.django_app.utils import strategy
from social.strategies.utils import get_strategy
from social.apps.django_app.utils import strategy, BACKENDS, STORAGE
from social.apps.django_app.views import _do_login

from social_auth.utils import load_strategy

STRATEGY = getattr(settings, setting_name('STRATEGY'),
'social_auth.strategy.DSAStrategy')


def load_strategy(*args, **kwargs):
return get_strategy(BACKENDS, STRATEGY, STORAGE, *args, **kwargs)


@strategy('socialauth_complete', load_strategy=load_strategy)
Expand Down

0 comments on commit 9c4029c

Please sign in to comment.