#NEWLINE# @ memoized #NEWLINE# def get_all_user_stubs_with_extra_data( self ) : #NEWLINE# #INDENT# if self . _previous_summary : #NEWLINE# #INDENT# previous_stubs = self . _previous_summary . get_all_user_stubs ( ) #NEWLINE# next_stubs = ( self . _next_summary . get_all_user_stubs ( ) if self . _next_summary else { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# user_stubs = self . get_all_user_stubs ( ) #NEWLINE# ret = [ ] #NEWLINE# for user_stub in user_stubs . values ( ) : #NEWLINE# #INDENT# ret . append ( UserActivityStub ( user_id = user_stub . user_id , username = user_stub . username , num_forms_submitted = user_stub . num_forms_submitted , is_performing = user_stub . is_performing , previous_stub = previous_stubs . get ( user_stub . user_id ) , next_stub = next_stubs . get ( user_stub . user_id ) ) ) #NEWLINE# #UNINDENT# for missing_user_id in ( set ( previous_stubs . keys ( ) ) - set ( user_stubs . keys ( ) ) ) : #NEWLINE# #INDENT# previous_stub = previous_stubs [ missing_user_id ] #NEWLINE# ret . append ( UserActivityStub ( user_id = previous_stub . user_id , username = previous_stub . username , num_forms_submitted = 0 , is_performing = False , previous_stub = user_stubs , next_stub = next_stubs . get ( missing_user_id ) ) ) #NEWLINE# #UNINDENT# return ret