Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/django_cas-2.0.3/django_cas/middleware.py   django_cas(Download)
from django.core.urlresolvers import reverse
 
from django_cas.views import login as cas_login, logout as cas_logout
 
__all__ = ['CASMiddleware']
            return cas_login(request, *view_args, **view_kwargs)
        elif view_func == logout:
            return cas_logout(request, *view_args, **view_kwargs)
 
        if settings.CAS_ADMIN_PREFIX:

src/d/j/django-cas2-HEAD/django_cas/middleware.py   django-cas2(Download)
from django.http import HttpResponseRedirect
from django_cas.exceptions import CasTicketException
from django_cas.views import login as cas_login, logout as cas_logout
from urllib import urlencode
 
            return cas_login(request, *view_args, **view_kwargs)
        if view_func == logout:
            return cas_logout(request, *view_args, **view_kwargs)
 
        # The rest of this method amends the Django admin authorization wich