#NEWLINE# def index( request , template_name = 'templated_emails/index.html' ) : #NEWLINE# #INDENT# if ( not request . user . is_superuser ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# directory_tree = get_email_directories ( settings . EMAIL_TEMPLATES_DIRECTORY ) #NEWLINE# return render_to_response ( template_name , { #NEWLINE# #INDENT# 'directory_tree' : directory_tree , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )