#NEWLINE# def load_home_page( request ) : #NEWLINE# #INDENT# if request . user . is_anonymous ( ) : #NEWLINE# #INDENT# url = getattr ( settings , 'ZORNA_PUBLIC_REDIRECT_URL' , None ) #NEWLINE# if url : #NEWLINE# #INDENT# return HttpResponseRedirect ( url ) #NEWLINE# #UNINDENT# t = loader . get_template ( 'public.html' ) #NEWLINE# title = _ ( 'Intranet' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = getattr ( settings , 'ZORNA_PRIVATE_REDIRECT_URL' , None ) #NEWLINE# if url : #NEWLINE# #INDENT# return HttpResponseRedirect ( url ) #NEWLINE# #UNINDENT# t = loader . get_template ( 'private.html' ) #NEWLINE# title = _ ( 'Intranet' ) #NEWLINE# #UNINDENT# c = RequestContext ( request , { #NEWLINE# #INDENT# 'zorna_title_page' : title , #NEWLINE# #UNINDENT# } ) #NEWLINE# return HttpResponse ( t . render ( c ) )