Changeset 8681


Ignore:
Timestamp:
14/11/12 16:32:04 (7 years ago)
Author:
mnagni
Message:

Just a few pylint improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/dj_security/views/dj_security_login.py

    r8680 r8681  
    1010from django.conf import settings 
    1111import logging 
    12 from json.encoder import JSONEncoder 
    1312from dj_security.encoder import SecurityEncoder 
    1413 
    1514# Get an instance of a logger 
    16 logger = logging.getLogger(__name__) 
     15LOGGER = logging.getLogger(__name__) 
    1716 
    1817def error_handle(request, context): 
     
    5756            '"permissions": "auth.add_user,proginfo.add_dataproduct, ' 
    5857            'proginfo.change_programme, cedainfoapp.delete_vmrequest"}' 
    59             return _encodeAuthenticatedResponse(request, context)   
     58            return _encode_authenticated_response(request, context)   
    6059         
    6160        # An unbound form 
     
    6564        return render_to_response('login.html', context) 
    6665     
    67 def _encodeAuthenticatedResponse(request, context): 
     66def _encode_authenticated_response(request, context): 
    6867    redirect_parameter = getattr(settings, 'REDIRECT_URL', 'r') 
    6968    context['redirect_url'] = request.GET.get(redirect_parameter, '') 
Note: See TracChangeset for help on using the changeset viewer.