Browse files

cleanup

  • Loading branch information...
1 parent 500843f commit a53939a04caefe35fa1b7a194a2a1986439e2685 @aehlke committed Mar 28, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −5 catnap/auth.py
  2. +0 −5 catnap/restviews.py
View
7 catnap/auth.py
@@ -1,12 +1,12 @@
# This module mostly taken from django-tastypie (thanks!),
# which is also BSD-licensed.
# Also uses part of Django-Rest-Framework.
-
import base64
+
from django.contrib.auth import authenticate as django_authenticate
-from exceptions import HttpUnauthorizedException
from django.middleware.csrf import CsrfViewMiddleware
+from exceptions import HttpUnauthorizedException
class Authentication(object):
@@ -103,7 +103,6 @@ class AuthenticationMixin(object):
authentication method you want. It defaults to a debug-mode
one which always authenticates successfully.
'''
-
# Which authentication to use.
authenticator = Authentication()
authenticators = None
@@ -124,5 +123,3 @@ def dispatch(self, request, *args, **kwargs):
return super(AuthenticationMixin, self).dispatch(
request, *args, **kwargs)
-
-
View
5 catnap/restviews.py
@@ -109,9 +109,6 @@ def get_response(self,
content_type=content_type,
**httpresponse_kwargs)
-
-
-
class SerializableMultipleObjectMixin(MultipleObjectMixin):
'''
@@ -322,8 +319,6 @@ def content_type(self):
subtype = self.content_subtype or self.__class__.__name__
return self.content_type_template_string.format(subtype)
-
-
#def ModelResourceView(ResourceView):

0 comments on commit a53939a

Please sign in to comment.