+import logging
from lxml import etree
from urllib import urlencode
import urllib2
)
+logger = logging.getLogger(__name__)
+
def login(request, template_name='cas/login.html',\
success_redirect=settings.LOGIN_REDIRECT_URL,
warn_template_name='cas/warn.html',
response = urllib2.urlopen(urlparse.urlunsplit(uri))
except urllib2.HTTPError, e:
if not e.code in proxy_callback_good_status:
+ logger.debug('Checking Proxy Callback URL {} returned {}. Not issuing PGT.'.format(uri, e.code))
return
except urllib2.URLError, e:
+ logger.debug('Checking Proxy Callback URL {} raised URLError. Not issuing PGT.'.format(uri))
return
pgt.save()