#NEWLINE# def account_deployment_dispatch( request , **kwargs ) : #NEWLINE# #INDENT# sso_unknown_email = False #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# email = template_response . POST [ 'username' ] #NEWLINE# realm = realm_for_email ( email ) #NEWLINE# try : #NEWLINE# #INDENT# return HttpResponseRedirect ( realm . deployment . base_site_url ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# sso_unknown_email = True #NEWLINE# #UNINDENT# #UNINDENT# template_response = django_login_page ( request , ** kwargs ) #NEWLINE# template_response . context_data [ 'desktop_sso_dispatch' ] = True #NEWLINE# template_response . context_data [ 'desktop_sso_unknown_email' ] = sso_unknown_email #NEWLINE# return template_response