#NEWLINE# @ property #NEWLINE# def rows( self ) : #NEWLINE# #INDENT# domains = [ res [ '_source' ] for res in self . es_results . get ( 'hits' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'hits' , [ ] ) ] #NEWLINE# for dom in domains : #NEWLINE# #INDENT# if dom . has_key ( 'name' ) : #NEWLINE# #INDENT# first_form_default_message = _ ( 'No Forms' ) #NEWLINE# if dom . get ( 'cp_last_form' , None ) : #NEWLINE# #INDENT# first_form_default_message = _ ( 'Unable to parse date' ) #NEWLINE# #UNINDENT# ( yield [ self . get_name_or_link ( dom ) , numcell ( dom . get ( 'cp_n_active_cc_users' , _ ( 'Not yet calculated' ) ) ) , numcell ( dom . get ( 'cp_n_cc_users' , _ ( 'Not yet calculated' ) ) ) , numcell ( dom . get ( 'cp_n_active_cases' , _ ( 'Not yet calculated' ) ) ) , numcell ( dom . get ( 'cp_n_cases' , _ ( 'Not yet calculated' ) ) ) , numcell ( dom . get ( 'cp_n_forms' , _ ( 'Not yet calculated' ) ) ) , format_date ( dom . get ( 'cp_first_form' ) , first_form_default_message ) , format_date ( dom . get ( 'cp_last_form' ) , _ ( 'No forms' ) ) , numcell ( dom . get ( 'cp_n_web_users' , _ ( 'Not yet calculated' ) ) ) ] )