#NEWLINE# def _auth_dict_for_flows( self , flows , session ) : #NEWLINE# #INDENT# public_flows = [ ] #NEWLINE# for f in flows : #NEWLINE# #INDENT# public_flows . append ( f ) #NEWLINE# #UNINDENT# get_params = { #NEWLINE# #INDENT# LoginType . RECAPTCHA : self . _get_params_recaptcha , #NEWLINE# #UNINDENT# } #NEWLINE# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for f in public_flows : #NEWLINE# #INDENT# for stage in f : #NEWLINE# #INDENT# if ( ( session in get_params ) and ( stage not in params ) ) : #NEWLINE# #INDENT# params [ stage ] = get_params [ stage ] ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# 'session' : session [ 'id' ] , #NEWLINE# 'flows' : [ { #NEWLINE# #INDENT# 'stages' : f , #NEWLINE# #UNINDENT# } for f in public_flows ] , #NEWLINE# 'params' : params , #NEWLINE# #UNINDENT# }