@@ -78,13 +78,13 @@ def index(request):
7878 if len (request .session ['samlUserdata' ]) > 0 :
7979 attributes = request .session ['samlUserdata' ].items ()
8080
81+ context = RequestContext (request , {'errors' : errors ,
82+ 'not_auth_warn' : not_auth_warn ,
83+ 'success_slo' : success_slo ,
84+ 'attributes' : attributes ,
85+ 'paint_logout' : paint_logout }).flatten ()
8186 return render_to_response ('index.html' ,
82- {'errors' : errors ,
83- 'not_auth_warn' : not_auth_warn ,
84- 'success_slo' : success_slo ,
85- 'attributes' : attributes ,
86- 'paint_logout' : paint_logout },
87- context_instance = RequestContext (request ))
87+ context = context )
8888
8989
9090def attrs (request ):
@@ -97,9 +97,8 @@ def attrs(request):
9797 attributes = request .session ['samlUserdata' ].items ()
9898
9999 return render_to_response ('attrs.html' ,
100- {'paint_logout' : paint_logout ,
101- 'attributes' : attributes },
102- context_instance = RequestContext (request ))
100+ context = RequestContext (request , {'paint_logout' : paint_logout ,
101+ 'attributes' : attributes }).flatten ())
103102
104103
105104def metadata (request ):
0 commit comments